RenderParams
class RenderParams
| kotlin.Any | |
| ↳ | android.graphics.pdf.RenderParams |
Represents a set of parameters that will be used to render a page of the PDF document.
Summary
| Nested classes | |
|---|---|
|
Builder for constructing |
|
| Constants | |
|---|---|
| static Int |
Flag to enable rendering of freetext annotation on the page. |
| static Int |
Flag to enable rendering of highlight annotation on the page. |
| static Int |
Flag to enable rendering of stamp annotation on the page. |
| static Int |
Flag to enable rendering of text annotation on the page. |
| static Int |
Mode to rely on the default behavior with respect to including PDF form content in rendered PDF bitmaps. |
| static Int |
Mode to exclude PDF form content from rendered PDF bitmaps. |
| static Int |
Mode to include PDF form content in rendered PDF bitmaps. |
| static Int |
Mode to render the content for display on a screen. |
| static Int |
Mode to render the content for printing. |
| static Int |
Flag to exclude |
| static Int |
Flag to include all the page objects in the rendered page bitmaps |
| static Int |
Flag to exclude |
| static Int |
Flag to exclude |
| Public methods | |
|---|---|
| Int |
Returns the bitmask of the render flags. |
| Int |
Returns the mode for rendering PDF form content, one of: |
| Int |
Returns the render mode. |
| Int |
Returns the bitmask of the render page object flags. |
Constants
FLAG_RENDER_FREETEXT_ANNOTATIONS
static val FLAG_RENDER_FREETEXT_ANNOTATIONS: Int
Flag to enable rendering of freetext annotation on the page.
Value: 16FLAG_RENDER_HIGHLIGHT_ANNOTATIONS
static val FLAG_RENDER_HIGHLIGHT_ANNOTATIONS: Int
Flag to enable rendering of highlight annotation on the page.
Value: 4FLAG_RENDER_STAMP_ANNOTATIONS
static val FLAG_RENDER_STAMP_ANNOTATIONS: Int
Flag to enable rendering of stamp annotation on the page.
Value: 8FLAG_RENDER_TEXT_ANNOTATIONS
static val FLAG_RENDER_TEXT_ANNOTATIONS: Int
Flag to enable rendering of text annotation on the page.
Value: 2RENDER_FORM_CONTENT_DEFAULT
static val RENDER_FORM_CONTENT_DEFAULT: Int
Mode to rely on the default behavior with respect to including PDF form content in rendered PDF bitmaps.
PdfRenderer will render form content by default if the application is targeting SDK version android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM or higher.
PdfRendererPreV will always render form content by default.
Value: 3RENDER_FORM_CONTENT_DISABLED
static val RENDER_FORM_CONTENT_DISABLED: Int
Mode to exclude PDF form content from rendered PDF bitmaps.
Value: 2RENDER_FORM_CONTENT_ENABLED
static val RENDER_FORM_CONTENT_ENABLED: Int
Mode to include PDF form content in rendered PDF bitmaps.
Value: 1RENDER_MODE_FOR_DISPLAY
static val RENDER_MODE_FOR_DISPLAY: Int
Mode to render the content for display on a screen.
Value: 1RENDER_MODE_FOR_PRINT
static val RENDER_MODE_FOR_PRINT: Int
Mode to render the content for printing.
Value: 2RENDER_PAGE_OBJECT_EXCLUDE_IMAGE
static val RENDER_PAGE_OBJECT_EXCLUDE_IMAGE: Int
Flag to exclude PdfPageImageObject in the rendered page bitmaps
Value: 4RENDER_PAGE_OBJECT_EXCLUDE_NONE
static val RENDER_PAGE_OBJECT_EXCLUDE_NONE: Int
Flag to include all the page objects in the rendered page bitmaps
Value: 0RENDER_PAGE_OBJECT_EXCLUDE_PATH
static val RENDER_PAGE_OBJECT_EXCLUDE_PATH: Int
Flag to exclude PdfPagePathObject in the rendered page bitmaps
Value: 2RENDER_PAGE_OBJECT_EXCLUDE_TEXT
static val RENDER_PAGE_OBJECT_EXCLUDE_TEXT: Int
Flag to exclude PdfPageTextObject in the rendered page bitmaps
Value: 8Public methods
getRenderFlags
fun getRenderFlags(): Int
Returns the bitmask of the render flags.
| Return | |
|---|---|
Int |
Value is either 0 or a combination of the following:
|
getRenderFormContentMode
fun getRenderFormContentMode(): Int
Returns the mode for rendering PDF form content, one of: RENDER_FORM_CONTENT_ENABLED, RENDER_FORM_CONTENT_DISABLED, or RENDER_FORM_CONTENT_DEFAULT
| Return | |
|---|---|
Int |
Value is one of the following: |
getRenderMode
fun getRenderMode(): Int
Returns the render mode.
| Return | |
|---|---|
Int |
Value is one of the following: |
getRenderPageObjectFlags
fun getRenderPageObjectFlags(): Int
Returns the bitmask of the render page object flags.
| Return | |
|---|---|
Int |
Value is either 0 or a combination of the following:
|
See Also