PdfDestination

data class PdfDestination(val view: PdfDestination.ViewFit, val pageIndex: Int?, val args: DoubleArray)

A resolved page destination (ISO 32000-1 §12.3.2). Holds the destination's target page (when we can resolve it) and the view-fit parameters.

Construct via PdfDocument.resolveDestination — it handles all four forms:

  1. An explicit array [page /XYZ left top zoom]

  2. A name-string referring into the catalog /Dests dict (PDF 1.1)

  3. A name-string referring into the /Names /Dests name tree (PDF 1.2+)

  4. A dictionary with /D pointing at any of the above

Constructors

Link copied to clipboard
constructor(view: PdfDestination.ViewFit, pageIndex: Int?, args: DoubleArray)

Types

Link copied to clipboard
sealed class ViewFit

Properties

Link copied to clipboard

Page-space coordinate args used by the fit mode. Empty for /Fit.

Link copied to clipboard

Zero-based page index, or null if the page reference didn't resolve.

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int