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. |
| 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. |
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: 2Public methods
getRenderFlags
fun getRenderFlags(): Int
Returns the bitmask of the render flags.
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
getRenderMode
fun getRenderMode(): Int
Returns the render mode.
| Return | |
|---|---|
Int |
Value is android.graphics.pdf.RenderParams#RENDER_MODE_FOR_DISPLAY, or android.graphics.pdf.RenderParams#RENDER_MODE_FOR_PRINT |