PageBuilder
Leave feedback
On this page
Inheritance: java.lang.Object
public class PageBuilder
PageInfo builder for getting the page collection from the documents.
| Constructor | Description |
|---|---|
| PageBuilder() | Initializes a new instance of the PageBuilder class. |
| PageBuilder(PageBuilderOptions options) | Initializes a new instance of the PageBuilder class. |
| Method | Description |
|---|---|
| getOptions() | The page builder options. |
| getPages() | The page collection. |
| getDocuments() | The document collection. |
| addDocument(int index, InputStream stream, FileType fileType, String password) | Add document to the document collection. |
| addDocument(DocumentInfo document) | Add document to the document collection. |
| addPage(int documentIndex, int pageNumber) | Add page to the page collection. |
| addPage(IPageInfo page) | Add page to the page collection. |
| addPageRange(IPageInfo[] pages) | Add pages to the page collection. |
| clear() | Clear the internal collections. |
public PageBuilder()
Initializes a new instance of the PageBuilder class.
public PageBuilder(PageBuilderOptions options)
Initializes a new instance of the PageBuilder class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| options | PageBuilderOptions | The page builder options. |
public final PageBuilderOptions getOptions()
The page builder options.
Returns: PageBuilderOptions
public final List<PageInfo> getPages()
The page collection.
Returns: java.util.List<com.groupdocs.merger.domain.result.PageInfo>
public final Map<Integer,DocumentInfo> getDocuments()
The document collection.
Returns: java.util.Map<java.lang.Integer,com.groupdocs.merger.domain.result.DocumentInfo>
public final void addDocument(int index, InputStream stream, FileType fileType, String password)
Add document to the document collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | DocumentInfo index. |
| stream | java.io.InputStream | DocumentInfo stream. |
| fileType | FileType | DocumentInfo type. |
| password | java.lang.String | DocumentInfo password. |
public final void addDocument(DocumentInfo document)
Add document to the document collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| document | DocumentInfo | DocumentInfo instance. |
public final void addPage(int documentIndex, int pageNumber)
Add page to the page collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| documentIndex | int | DocumentInfo index. |
| pageNumber | int | PageInfo number. |
public final void addPage(IPageInfo page)
Add page to the page collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| page | IPageInfo | PageInfo instance. |
public final void addPageRange(IPageInfo[] pages)
Add pages to the page collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pages | IPageInfo[] | Pages array. |
public final void clear()
Clear the internal collections.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.