Document

class Document(val bytes: ByteArray, val textRuns: List<<Error class: unknown class>>, val hyperlinks: List<<Error class: unknown class>>) : PdfSource

PDF payload paired with the laid-out text runs and hyperlink annotations the renderer produced. Lets PdfViewer mount a transparent, selectable text overlay on each page and attach a clickable layer for hyperlink targets.

Constructors

Link copied to clipboard
constructor(bytes: ByteArray, textRuns: List<<Error class: unknown class>>, hyperlinks: List<<Error class: unknown class>>)

Properties

Link copied to clipboard

raw %PDF-… bytes — same shape as Bytes.

Link copied to clipboard
val hyperlinks: List<<Error class: unknown class>>

every hyperlink annotation captured during rendering, indexed by page via PdfHyperlink.pageIndex.

Link copied to clipboard
val textRuns: List<<Error class: unknown class>>

every text run captured during rendering, indexed by page via PdfTextRun.pageIndex.