public class TextFieldBuilder extends AbstractFormFieldBuilder
Copyright (c) 2020-2024 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 static String |
DEFAULT_APPEARANCE_FORMATTER
默认外观格式化
|
protected String |
defaultValue
默认值
|
protected Color |
fontColor
字体颜色
|
protected String |
fontName
字体名称
|
protected Float |
fontSize
字体大小
|
protected Boolean |
isCombination
是否组合
|
protected Boolean |
isDoNotScroll
是否非滚动
|
protected Boolean |
isDoNotSpellCheck
是否非拼写检查
|
protected Boolean |
isFileSelect
是否文件选择
|
protected Boolean |
isMultiline
是否多行
|
protected Boolean |
isPassword
是否密码
|
protected Boolean |
isRichText
是否富文本
|
protected Integer |
maxLength
最大长度
|
protected String |
richTextValue
富文本值
|
alignment, document, isNoExport, isReadonly, isRequired, name, page, size
Modifier and Type | Method and Description |
---|---|
org.apache.pdfbox.pdmodel.interactive.form.PDField |
build(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm form)
构建
|
static TextFieldBuilder |
builder(Document document,
Page page,
Size size)
构建器
|
protected void |
initAppearance(org.apache.pdfbox.pdmodel.interactive.form.PDTextField field)
初始化外观
|
protected void |
initProperties(org.apache.pdfbox.pdmodel.interactive.form.PDTextField field)
初始化属性
|
initProperties, initSize
protected static final String DEFAULT_APPEARANCE_FORMATTER
protected String fontName
protected Float fontSize
protected Color fontColor
protected Boolean isMultiline
protected Boolean isPassword
protected Boolean isFileSelect
protected Boolean isDoNotSpellCheck
protected Boolean isDoNotScroll
protected Boolean isCombination
protected Boolean isRichText
protected String richTextValue
protected Integer maxLength
protected String defaultValue
public static TextFieldBuilder builder(Document document, Page page, Size size)
document
- 文档page
- 页面size
- 尺寸public org.apache.pdfbox.pdmodel.interactive.form.PDField build(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm form)
build
in class AbstractFormFieldBuilder
form
- 表单protected void initProperties(org.apache.pdfbox.pdmodel.interactive.form.PDTextField field)
field
- 字段protected void initAppearance(org.apache.pdfbox.pdmodel.interactive.form.PDTextField field)
field
- 字段Copyright © 2024. All rights reserved.