public class PageProcessor 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.
document, log
Constructor and Description |
---|
PageProcessor(Document document)
有参构造
|
Modifier and Type | Method and Description |
---|---|
void |
append(Page page)
追加页面
|
void |
crop(PageSize rectangle,
int... pageIndexes)
裁剪页面
|
void |
flush()
刷新页面
|
List<Page> |
getPages()
获取页面
|
void |
insert(int index,
Page page)
插入页面
|
void |
join(PageJoinType type,
Float beginX,
Float beginY,
Page newPage,
Page... pages)
拼接页面
|
void |
join(PageJoinType type,
Page newPage,
Page... pages)
拼接页面
|
void |
remove(int... indexes)
移除页面
|
void |
resetSize()
重置尺寸(恢复原有尺寸)
|
void |
resort(int... indexes)
重排序页面
|
void |
restructure(int... indexes)
重组页面
|
void |
rotation(RotationAngle angle,
int... pageIndexes)
旋转页面
|
void |
scale(PageSize rectangle,
int... pageIndexes)
缩放页面
|
void |
set(int index,
Page page)
设置页面(替换)
|
getDocument
public PageProcessor(Document document)
document
- 文档public void insert(int index, Page page)
index
- 页面索引page
- 页面public void append(Page page)
page
- 页面public void set(int index, Page page)
index
- 页面索引page
- 页面public void remove(int... indexes)
indexes
- 页面索引public void join(PageJoinType type, Page newPage, Page... pages)
type
- 拼接类型newPage
- 新页面pages
- 页面列表public void join(PageJoinType type, Float beginX, Float beginY, Page newPage, Page... pages)
type
- 拼接类型beginX
- X轴起始坐标beginY
- Y轴起始坐标newPage
- 新页面pages
- 页面列表public void restructure(int... indexes)
indexes
- 页面索引public void resort(int... indexes)
indexes
- 页面索引public void rotation(RotationAngle angle, int... pageIndexes)
angle
- 角度public void scale(PageSize rectangle, int... pageIndexes)
rectangle
- 页面尺寸public void crop(PageSize rectangle, int... pageIndexes)
rectangle
- 页面尺寸public void resetSize()
public void flush()
Copyright © 2024. All rights reserved.