| java.lang.Object | |
| ↳ | com.pspdfkit.configuration.rendering.PageRenderConfiguration.Builder |
Builder to create a PageRenderConfiguration instance
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Builder() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PageRenderConfiguration |
build()
Creates the configuration for page rendering.
| ||||||||||
| PageRenderConfiguration.Builder |
cache(boolean useCache)
Use PSPDFKits disk and memory cache to render subsequent bitmaps faster.
| ||||||||||
| PageRenderConfiguration.Builder |
formHighlightColor(int color)
Sets color used for highlighting editable form fields.
| ||||||||||
| PageRenderConfiguration.Builder |
formItemHighlightColor(int color)
Sets color used for highlighting selected items inside lists, combo boxes and similar.
| ||||||||||
| PageRenderConfiguration.Builder |
formRequiredFieldBorderColor(int color)
Sets color of the border around required form fields.
| ||||||||||
| PageRenderConfiguration.Builder |
invertColors(boolean invertColors)
Sets if the colors will be inverted in the document.
| ||||||||||
| PageRenderConfiguration.Builder |
paperColor(int color)
Background paper color for contents.
| ||||||||||
| PageRenderConfiguration.Builder |
redactionAnnotationPreviewEnabled(boolean enable)
Sets redaction annotation preview enabled,
false by default. | ||||||||||
| PageRenderConfiguration.Builder |
region(int x, int y, int fullPageWidth, int fullPageHeight)
Render a sub-region of the page.
| ||||||||||
| PageRenderConfiguration.Builder | renderedDrawables(List<PdfDrawable> pdfDrawables) | ||||||||||
| PageRenderConfiguration.Builder |
reuseBitmap(Bitmap bitmap)
Reuse bitmap as the rendering target and prevent allocation of new one.
| ||||||||||
| PageRenderConfiguration.Builder |
toGrayscale(boolean toGrayscale)
Sets if the colors will be converted to grayscale.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Use PSPDFKits disk and memory cache to render subsequent bitmaps faster. True by default.
| useCache | true to use cache, false otherwise.
|
|---|
Sets color used for highlighting editable form fields. Each editable form field is overlaid with rectangle filled with this color.
| color | ARGB color integer (can be TRANSPARENT).
|
|---|
Sets color used for highlighting selected items inside lists, combo boxes and similar.
| color | ARGB color integer (can be TRANSPARENT).
|
|---|
Sets color of the border around required form fields.
| color | ARGB color integer or TRANSPARENT to not show the border.
|
|---|
Sets if the colors will be inverted in the document.
| invertColors | true to invert colors, false otherwise.
|
|---|
Background paper color for contents. White by default.
| color | ARGB color integer. |
|---|
Sets redaction annotation preview enabled, false by default.
| enable | true to enable redaction annotation preview.
|
|---|
Render a sub-region of the page. Region square is determined from the passed full page size parameters and the bitmap size.
For example, if you want to render a center quarter of a square page at 640x640 resolution, you would pass in a 640x640 bitmap, set x and y offsets to 320 and 320 and define full page size as 1280x1280.
| x | x-offset of the rendered region, can be negative. |
|---|---|
| y | y-offset of the rendered region, can be negative. |
| fullPageWidth | Width of the fully sized page. |
| fullPageHeight | Height of the fully sized page. |
Reuse bitmap as the rendering target and prevent allocation of new one. Note that there is no guarantee the bitmap will actually be reused when using cache. Bitmap must be the same size as the size passed in the rendering method.
| bitmap | Bitmap to be reused. |
|---|
Sets if the colors will be converted to grayscale.
| toGrayscale | true to covert to grayscale, false otherwise.
|
|---|