Package-level declarations

Types

Link copied to clipboard
class ByteArrayBuilder(initialCapacity: Int = 64)

Grow-on-demand byte buffer. Pure Kotlin (no platform OutputStream classes), so it works in commonMain across all targets — and it's faster than mutableListOf<Byte>() because it stores into a contiguous primitive array.

Link copied to clipboard
class ByteReader(val bytes: ByteArray)

Random-access byte cursor over an in-memory PDF.

Link copied to clipboard
class PdfFormatException(message: String, cause: Throwable? = null)

Raised for any structural PDF error: bad header, truncated stream, malformed xref, etc.