XrefEntry

sealed class XrefEntry

A cross-reference entry. Distinct subtypes for the three xref-entry kinds.

Inheritors

Types

Link copied to clipboard
data class Compressed(val objectNumber: Long, val containingObjectStream: Long, val indexInObjectStream: Int) : XrefEntry

Object stored inside an object-stream (PDF 1.5+ §7.5.7). Caller must fetch the containing object stream and look up indexInObjectStream.

Link copied to clipboard
data class Free(val objectNumber: Long) : XrefEntry

Object number is unused / freed.

Link copied to clipboard
data class InUse(val objectNumber: Long, val generation: Int, val byteOffset: Int) : XrefEntry

Live object stored at byteOffset in the file with generation N.

Properties

Link copied to clipboard
abstract val objectNumber: Long