public class ImageFieldBuilder 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 String |
label
标签
|
protected ImageFieldLayout |
layout
布局
|
protected static org.apache.pdfbox.cos.COSName |
LAYOUT_KEY
布局选项
|
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 ImageFieldBuilder |
builder(Document document,
Page page,
Size size)
构建器
|
protected void |
initAppearance(org.apache.pdfbox.pdmodel.interactive.form.PDField field)
初始化外观
|
protected void |
initProperties(org.apache.pdfbox.pdmodel.interactive.form.PDField field)
初始化属性
|
initSize
protected static final org.apache.pdfbox.cos.COSName LAYOUT_KEY
protected String label
protected ImageFieldLayout layout
public static ImageFieldBuilder 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.PDField field)
initProperties
in class AbstractFormFieldBuilder
field
- 字段protected void initAppearance(org.apache.pdfbox.pdmodel.interactive.form.PDField field)
field
- 字段Copyright © 2024. All rights reserved.