RenderParams
public
final
class
RenderParams
extends Object
java.lang.Object | |
↳ | android.graphics.pdf.RenderParams |
Represents a set of parameters that will be used to render a page of the PDF document.
Summary
Nested classes | |
---|---|
class |
RenderParams.Builder
Builder for constructing |
Constants | |
---|---|
int |
FLAG_RENDER_FREETEXT_ANNOTATIONS
Flag to enable rendering of freetext annotation on the page. |
int |
FLAG_RENDER_HIGHLIGHT_ANNOTATIONS
Flag to enable rendering of highlight annotation on the page. |
int |
FLAG_RENDER_STAMP_ANNOTATIONS
Flag to enable rendering of stamp annotation on the page. |
int |
FLAG_RENDER_TEXT_ANNOTATIONS
Flag to enable rendering of text annotation on the page. |
int |
RENDER_FORM_CONTENT_DEFAULT
Mode to rely on the default behavior with respect to including PDF form content in rendered PDF bitmaps. |
int |
RENDER_FORM_CONTENT_DISABLED
Mode to exclude PDF form content from rendered PDF bitmaps. |
int |
RENDER_FORM_CONTENT_ENABLED
Mode to include PDF form content in rendered PDF bitmaps. |
int |
RENDER_MODE_FOR_DISPLAY
Mode to render the content for display on a screen. |
int |
RENDER_MODE_FOR_PRINT
Mode to render the content for printing. |
Public methods | |
---|---|
int
|
getRenderFlags()
Returns the bitmask of the render flags. |
int
|
getRenderFormContentMode()
Returns the mode for rendering PDF form content, one of:
|
int
|
getRenderMode()
Returns the render mode. |
Inherited methods | |
---|---|
Constants
FLAG_RENDER_FREETEXT_ANNOTATIONS
public static final int FLAG_RENDER_FREETEXT_ANNOTATIONS
Flag to enable rendering of freetext annotation on the page.
Constant Value: 16 (0x00000010)
FLAG_RENDER_HIGHLIGHT_ANNOTATIONS
public static final int FLAG_RENDER_HIGHLIGHT_ANNOTATIONS
Flag to enable rendering of highlight annotation on the page.
Constant Value: 4 (0x00000004)
FLAG_RENDER_STAMP_ANNOTATIONS
public static final int FLAG_RENDER_STAMP_ANNOTATIONS
Flag to enable rendering of stamp annotation on the page.
Constant Value: 8 (0x00000008)
FLAG_RENDER_TEXT_ANNOTATIONS
public static final int FLAG_RENDER_TEXT_ANNOTATIONS
Flag to enable rendering of text annotation on the page.
Constant Value: 2 (0x00000002)
RENDER_FORM_CONTENT_DEFAULT
public static final int RENDER_FORM_CONTENT_DEFAULT
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 Build.VERSION_CODES.VANILLA_ICE_CREAM
or higher.
PdfRendererPreV
will always render form content by default.
Constant Value: 3 (0x00000003)
RENDER_FORM_CONTENT_DISABLED
public static final int RENDER_FORM_CONTENT_DISABLED
Mode to exclude PDF form content from rendered PDF bitmaps.
Constant Value: 2 (0x00000002)
RENDER_FORM_CONTENT_ENABLED
public static final int RENDER_FORM_CONTENT_ENABLED
Mode to include PDF form content in rendered PDF bitmaps.
Constant Value: 1 (0x00000001)
RENDER_MODE_FOR_DISPLAY
public static final int RENDER_MODE_FOR_DISPLAY
Mode to render the content for display on a screen.
Constant Value: 1 (0x00000001)
RENDER_MODE_FOR_PRINT
public static final int RENDER_MODE_FOR_PRINT
Mode to render the content for printing.
Constant Value: 2 (0x00000002)
Public methods
getRenderFlags
public int getRenderFlags ()
Returns the bitmask of the render flags.
Returns | |
---|---|
int |
Value is either 0 or a combination of FLAG_RENDER_TEXT_ANNOTATIONS , FLAG_RENDER_HIGHLIGHT_ANNOTATIONS , FLAG_RENDER_STAMP_ANNOTATIONS , and FLAG_RENDER_FREETEXT_ANNOTATIONS |
getRenderFormContentMode
public int getRenderFormContentMode ()
Returns the mode for rendering PDF form content, one of:
RENDER_FORM_CONTENT_ENABLED
, RENDER_FORM_CONTENT_DISABLED
, or
RENDER_FORM_CONTENT_DEFAULT
Returns | |
---|---|
int |
Value is RENDER_FORM_CONTENT_ENABLED , RENDER_FORM_CONTENT_DISABLED , or RENDER_FORM_CONTENT_DEFAULT |
getRenderMode
public int getRenderMode ()
Returns the render mode.
Returns | |
---|---|
int |
Value is RENDER_MODE_FOR_DISPLAY , or RENDER_MODE_FOR_PRINT |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.