| java.lang.Object | |
| ↳ | com.pspdfkit.document.processor.NewPage.Builder |
Builder for NewPage objects.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| NewPage.Builder |
backgroundColor(int backgroundColor)
Sets background color for the page.
| ||||||||||
| NewPage |
build()
Creates a
NewPage object. | ||||||||||
| NewPage.Builder |
rotation(int rotation)
Rotates the page.
| ||||||||||
| NewPage.Builder |
withMargins(RectF margins)
Sets page margins in PDF points.
| ||||||||||
| NewPage.Builder |
withPageItem(PageCanvas canvas)
Merges content of canvas drawing to this page.
| ||||||||||
| NewPage.Builder |
withPageItem(PageImage image)
Adds an image to this page.
| ||||||||||
| NewPage.Builder |
withPageItem(PagePdf pdf)
Merges content of another PDF page to this page.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Sets background color for the page.
| backgroundColor | Background color, default is TRANSPARENT which is rendered white on most renderers.
|
|---|
Rotates the page.
| rotation | Rotation of the page, valid values are 0, 90, 180 or 270. |
|---|
Sets page margins in PDF points.
| margins | Rect representing page margins. |
|---|
Merges content of canvas drawing to this page. Only one page item can be added at a time.
| canvas | Page canvas to be merged onto this page. |
|---|
Adds an image to this page. Only one page item can be added at a time.
| image | Image to be added to the page. |
|---|
Merges content of another PDF page to this page. Only one page item can be added at a time.
| Page to be merged onto this page. |