RenderParams


class RenderParams : Parcelable


The set of parameters that will be used to render the page of a PDF Document. It can be tuned to set the render mode, render flags and render form content mode.

Note: renderFlags defaults to FLAG_RENDER_NONE which means that no annotations will be rendered on the bitmap. renderFormContentMode defaults to RENDER_FORM_CONTENT_ENABLED which means that PDF form widgets (if present) will be rendered on the bitmap.

Summary

Constants

const Int

Flag to enable rendering of freetext annotation on the page.

const Int

Flag to enable rendering of highlight annotation on the page.

const Int

Flag to disable rendering of all types of annotations on the page.

const Int

Flag to enable rendering of stamp annotation on the page.

const Int

Flag to enable rendering of text annotation on the page.

const Int

Mode to exclude PDF form content in rendered PDF bitmaps.

const Int

Mode to include PDF form content in rendered PDF bitmaps.

const Int

Mode to render the content for display on a screen.

const Int

Mode to render the content for printing.

Public companion properties

Parcelable.Creator<RenderParams>

Public constructors

RenderParams(renderMode: Int, renderFlags: Int, renderFormContentMode: Int)

Public functions

open Int
open operator Boolean
equals(other: Any?)
open Int
open Unit
writeToParcel(dest: Parcel, flags: Int)

Constants

FLAG_RENDER_FREETEXT

const val FLAG_RENDER_FREETEXTInt

Flag to enable rendering of freetext annotation on the page.

FLAG_RENDER_HIGHLIGHT_ANNOTATIONS

const val FLAG_RENDER_HIGHLIGHT_ANNOTATIONSInt

Flag to enable rendering of highlight annotation on the page.

FLAG_RENDER_NONE

const val FLAG_RENDER_NONE = 0: Int

Flag to disable rendering of all types of annotations on the page.

FLAG_RENDER_STAMP_ANNOTATIONS

const val FLAG_RENDER_STAMP_ANNOTATIONSInt

Flag to enable rendering of stamp annotation on the page.

FLAG_RENDER_TEXT_ANNOTATIONS

const val FLAG_RENDER_TEXT_ANNOTATIONSInt

Flag to enable rendering of text annotation on the page.

RENDER_FORM_CONTENT_DISABLED

const val RENDER_FORM_CONTENT_DISABLED = 2: Int

Mode to exclude PDF form content in rendered PDF bitmaps.

RENDER_FORM_CONTENT_ENABLED

const val RENDER_FORM_CONTENT_ENABLED = 1: Int

Mode to include PDF form content in rendered PDF bitmaps.

RENDER_MODE_FOR_DISPLAY

const val RENDER_MODE_FOR_DISPLAY = 1: Int

Mode to render the content for display on a screen.

RENDER_MODE_FOR_PRINT

const val RENDER_MODE_FOR_PRINT = 2: Int

Mode to render the content for printing.

Public companion properties

Public constructors

RenderParams

Added in 1.0.0-alpha13
RenderParams(
    renderMode: Int,
    renderFlags: Int = FLAG_RENDER_NONE,
    renderFormContentMode: Int = RENDER_FORM_CONTENT_ENABLED
)

Public functions

describeContents

Added in 1.0.0-alpha13
open fun describeContents(): Int

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

writeToParcel

Added in 1.0.0-alpha13
open fun writeToParcel(dest: Parcel, flags: Int): Unit

Public properties

renderFlags

Added in 1.0.0-alpha13
val renderFlagsInt

renderFormContentMode

Added in 1.0.0-alpha13
val renderFormContentModeInt

renderMode

Added in 1.0.0-alpha13
val renderModeInt