PdfReaderPublicationOptions

data class PdfReaderPublicationOptions(val highResScaleThreshold: Double = 1.1, val maxCanvasPixels: Int = 8388608, val additionalLocatorUrls: List<String> = emptyList(), val clipboardOptions: ReaderPublicationClipboardOptions = ReaderPublicationClipboardOptions(), val defaultLocatorUrl: String? = null, val preventDefaultContextMenu: Boolean = false, val preventDragAndDropActions: Boolean = true)

Options related to processing and presentation of PDF publications.

Constructors

Link copied to clipboard
fun PdfReaderPublicationOptions(highResScaleThreshold: Double = 1.1, maxCanvasPixels: Int = 8388608, additionalLocatorUrls: List<String> = emptyList(), clipboardOptions: ReaderPublicationClipboardOptions = ReaderPublicationClipboardOptions(), defaultLocatorUrl: String? = null, preventDefaultContextMenu: Boolean = false, preventDragAndDropActions: Boolean = true)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

Additional locator URLs that should resolve to the ReaderPublication when calling methods with locator parameters, such as ReaderView.goTo(), ReaderViewAnnotationLayer.createAnnotation()

Link copied to clipboard

Options controlling clipboard actions.

Link copied to clipboard

The base URL that should be used by the ReaderPublication when it creates new Locators.

Link copied to clipboard

The minimum amount of scaling before re-rendering the visible pages at a higher resolution.

Link copied to clipboard
val maxCanvasPixels: Int = 8388608

Determines the maximum number of pixels of the canvas we render the pdf to.

Link copied to clipboard

If set to true, the reading system will prevent the default "right-click" and "long-press" context menus to be shown for publication content.

Link copied to clipboard

Sets if users should be able to "drag-and-drop" content from the publication.