public class Template extends Object
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-fop is licensed under the 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.
| 构造器和说明 |
|---|
Template() |
public Template setConfigPath(String configPath)
configPath - 配置路径public Template setDataSource(DataSource dataSource)
dataSource - 数据源public Template setLayoutManagerMaker(ExpandLayoutManagerMaker maker)
maker - 布局管理器public Template setEncryptionLength(Integer length)
注:长度仅为40、128、256
length - 长度public Template setOwnerPassword(String password)
password - 密码public Template setUserPassword(String password)
password - 密码public Template setIsNoAssembleDoc(Boolean flag)
flag - 是否禁止文档组合public Template setIsNoAccessContent(Boolean flag)
flag - 是否禁止复制内容用于辅助工具public Template setIsNoPrintHQ(Boolean flag)
flag - 是否禁止页面提取public Template setIsNoAnnotations(Boolean flag)
flag - 是否禁止注释public Template setIsNoFillForm(Boolean flag)
flag - 是否禁止填写表单public Template enableAccessibility()
public Template enableConserveMemory()
public Template disableKeepEmptyTags()
public Template disableErrorInfo()
public Integer getTotalPage()
public Document transform()
public void transform(String outputPath)
outputPath - 输出路径public void transform(OutputStream outputStream)
outputStream - 输出流Copyright © 2025. All rights reserved.