public abstract class AbstractFormAnalyzer extends AbstractAnalyzer
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-pdfbox is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Modifier and Type | Field and Description |
---|---|
protected List<org.apache.pdfbox.pdmodel.interactive.form.PDField> |
fieldList
字段列表
|
protected Map<Integer,Set<FormFieldInfo>> |
infoMap
字段信息字典
|
protected Set<FormFieldInfo> |
infoSet
字段信息列表
|
protected Set<FormFieldInfo> |
tempSet
临时列表
|
document, log
Constructor and Description |
---|
AbstractFormAnalyzer(Document document)
有参构造
|
Modifier and Type | Method and Description |
---|---|
protected Set<FormFieldInfo> |
getFields(int pageIndex)
获取字段信息列表
|
protected void |
initInfoMap()
初始化字段信息字典
|
protected void |
processField(org.apache.pdfbox.pdmodel.interactive.form.PDField field)
处理字段
|
abstract void |
processForm(int pageIndex,
org.apache.pdfbox.pdmodel.PDPage page)
处理表单
|
protected void |
processPageInfo() |
getDocument
protected List<org.apache.pdfbox.pdmodel.interactive.form.PDField> fieldList
protected Map<Integer,Set<FormFieldInfo>> infoMap
protected final Set<FormFieldInfo> infoSet
protected Set<FormFieldInfo> tempSet
public AbstractFormAnalyzer(Document document)
document
- 文档public abstract void processForm(int pageIndex, org.apache.pdfbox.pdmodel.PDPage page)
pageIndex
- 页面索引page
- pdfbox页面protected Set<FormFieldInfo> getFields(int pageIndex)
pageIndex
- 页面索引protected void initInfoMap()
protected void processField(org.apache.pdfbox.pdmodel.interactive.form.PDField field)
field
- pdfbox字段protected void processPageInfo()
Copyright © 2024. All rights reserved.