The variants intentionally stay specific enough for tests and callers todistinguish malformed input classes, while most public APIs expose themthrough the ordinary raise PdfError flow.
The core in-memory representation of a parsed PDF object.
Strings and names are byte-oriented PDF values, not MoonBit Unicode strings.PdfIndirect(number) is an unresolved reference by object number; callersthat need the referenced object should resolve it through a PdfDocument.
In-memory page description used by page-tree read and write helpers.
content stores stream objects or indirect stream references. mediabox,resources, and rest preserve PDF objects so byte-oriented dictionarydata is not forced through MoonBit strings.