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() |
| 限定符和类型 | 方法和说明 |
|---|---|
Template |
disableErrorInfo()
关闭错误定位信息
|
Template |
disableKeepEmptyTags()
关闭空标签(将耗费更多内存)
|
Template |
enableAccessibility()
开启辅助功能(将耗费更多内存)
|
Template |
enableConserveMemory()
开启保留内存
|
Integer |
getTotalPage()
获取总页数
|
Template |
setAuthor(String author)
设置作者
|
Template |
setConfigPath(String configPath)
设置配置路径
|
Template |
setCreationDate(Date date)
设置创建时间
|
Template |
setCreator(String creator)
设置创建者
|
Template |
setDataSource(DataSource dataSource)
设置数据源
|
Template |
setKeywords(String keywords)
设置关键词
|
Template |
setLayoutManagerMaker(ExpandLayoutManagerMaker maker)
设置布局管理器
|
Template |
setSubject(String subject)
设置主题
|
Template |
setTitle(String title)
设置标题
|
Document |
transform()
转换pdf
|
void |
transform(OutputStream outputStream)
转换pdf
|
void |
transform(String outputPath)
转换pdf
|
public Template setConfigPath(String configPath)
configPath - 配置路径public Template setDataSource(DataSource dataSource)
dataSource - 数据源public Template setLayoutManagerMaker(ExpandLayoutManagerMaker maker)
maker - 布局管理器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 © 2024. All rights reserved.