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 RenderParams

Constants

int FLAG_RENDER_HIGHLIGHT_ANNOTATIONS

Flag to enable rendering of highlight annotation on the page.

int FLAG_RENDER_TEXT_ANNOTATIONS

Flag to enable rendering of text annotation on the page.

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 getRenderMode()

Returns the render mode.

Inherited methods

Constants

FLAG_RENDER_HIGHLIGHT_ANNOTATIONS

Added in API level 35
Also in S Extensions 13
public static final int FLAG_RENDER_HIGHLIGHT_ANNOTATIONS

Flag to enable rendering of highlight annotation on the page.

Constant Value: 4 (0x00000004)

FLAG_RENDER_TEXT_ANNOTATIONS

Added in API level 35
Also in S Extensions 13
public static final int FLAG_RENDER_TEXT_ANNOTATIONS

Flag to enable rendering of text annotation on the page.

Constant Value: 2 (0x00000002)

RENDER_MODE_FOR_DISPLAY

Added in API level 35
Also in S Extensions 13
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

Added in API level 35
Also in S Extensions 13
public static final int RENDER_MODE_FOR_PRINT

Mode to render the content for printing.

Constant Value: 2 (0x00000002)

Public methods

getRenderFlags

Added in API level 35
Also in S Extensions 13
public int getRenderFlags ()

Returns the bitmask of the render flags.

Returns
int Value is either 0 or a combination of FLAG_RENDER_TEXT_ANNOTATIONS, and FLAG_RENDER_HIGHLIGHT_ANNOTATIONS

getRenderMode

Added in API level 35
Also in S Extensions 13
public int getRenderMode ()

Returns the render mode.

Returns
int Value is RENDER_MODE_FOR_DISPLAY, or RENDER_MODE_FOR_PRINT