public class DefaultFreeTextAppearanceHandler
extends org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDFreeTextAppearanceHandler
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 org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation |
annotation
注释
|
protected Document |
document
文档
|
protected PDFont |
font
字体
|
Constructor and Description |
---|
DefaultFreeTextAppearanceHandler(Document document,
org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation annotation)
有参构造
|
DefaultFreeTextAppearanceHandler(Document document,
org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation annotation,
PDFont font)
有参构造
|
Modifier and Type | Method and Description |
---|---|
void |
generateNormalAppearance()
生成正常外观
|
protected PDFont |
getDefaultFont()
获取默认字体
|
protected void |
release()
释放资源
|
generateDownAppearance, generateRolloverAppearance
createCOSStream
protected Document document
protected org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation annotation
protected PDFont font
public DefaultFreeTextAppearanceHandler(Document document, org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation annotation)
document
- 文档annotation
- 注释protected PDFont getDefaultFont()
getDefaultFont
in class org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
public void generateNormalAppearance()
generateNormalAppearance
in interface org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAppearanceHandler
generateNormalAppearance
in class org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDFreeTextAppearanceHandler
protected void release()
Copyright © 2024. All rights reserved.