public class LayerProcessor extends AbstractProcessor
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.
logdocument| 构造器和说明 |
|---|
LayerProcessor(Document document)
有参构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addImage(String layerName,
boolean isReplace,
BufferedImage image,
Page page)
添加图像
|
protected void |
addImage(String layerName,
boolean isReplace,
BufferedImage image,
org.apache.pdfbox.pdmodel.PDPage page)
添加图像
|
void |
append(String layerName,
BufferedImage image,
Page page)
追加图层
|
protected org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentGroup |
initOCGroup(String layerName,
boolean isReplace)
初始化可选内容组
|
protected org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties |
initOCProperties()
初始化可选内容属性
|
void |
set(String layerName,
BufferedImage image,
Page page)
设置图层(替换)
|
getDocumentpublic LayerProcessor(Document document)
document - 文档public void append(String layerName, BufferedImage image, Page page)
layerName - 图层名称image - 图像page - 页面public void set(String layerName, BufferedImage image, Page page)
layerName - 图层名称image - 图像page - 页面protected void addImage(String layerName, boolean isReplace, BufferedImage image, Page page)
layerName - 图层名称isReplace - 是否替换image - 图像page - 页面protected void addImage(String layerName, boolean isReplace, BufferedImage image, org.apache.pdfbox.pdmodel.PDPage page)
layerName - 图层名称isReplace - 是否替换image - 图像page - 页面protected org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentGroup initOCGroup(String layerName, boolean isReplace)
layerName - 图层名称isReplace - 是否替换protected org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties initOCProperties()
Copyright © 2024. All rights reserved.