PageCollection
PageCollection
Overview
PageCollection 是一个类在Java的FOSS中. 继承人: Iterable<Page>.
代表一个PDF文档中的页面集合 (ISO 32000-1:2008,第7.7.3.2).
本类提供了14种方法,用于在Java程序中使用PageCollection 对象. 有的方法包括: PageCollection, accept, add, clear, delete, get, getCount, insert, iterator, size. 所有公众成员在安装了Java的FOSS包后,可以访问任何 Java应用程序. 特性: count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | 返回页面数. |
Methods
| Signature | Description |
|---|---|
PageCollection(pagesDict: PdfDictionary, parser: PDFParser) | 创建一个 PageCollection 将/页面的根字典包裹起来. |
get(index: int) → Page | 返回给定基于1的索引. |
getCount() → int | 返回页面数. |
size() → int | 返回页面数 (为 {@link #getCount()} 的别名). |
iterator() → Iterator<Page> | 在所有页面上返回一次代. |
accept(absorber: TextAbsorber) | 接受一个文本吸收器,从此集合中的所有页面中提取文字. |
accept(absorber: ImagePlacementAbsorber) | 接受图像放置吸收器,以在所有页面上找到图片. |
add() → Page | 创建一个具有标准A4页面边界的新页 [0 0 595 842],将其添加到本集合的最后,然后返回. |
add(page: Page) | 将现有页面添加到本集合的最后. |
add(otherPages: PageCollection) | 将另一个 PageCollection 的所有页面添加到该集合的最后. |
insert(index: int) → Page | 在给定基于1的索引中插入一个新的空白页 (A4),并返回它. |
insert(index: int, page: Page) | 在给定的基于1索引中插入一个页面. |
clear() | 从文档中删除所有页面. |
delete(index: int) | 删除给定基于1的索引上的页面. |