Skip to main content

Module object

Module object 

Source
Expand description

PDF base objects and their serialization.

Object models every base type of ISO 32000-2 §7.3: null, booleans, integers, reals, strings, names, arrays, dictionaries and indirect references. The serializers here are the writer side of the round-trip that M2 requires: the tokenizer added in Q2 parses exactly the bytes produced below, so parse → write and write → parse both preserve bytes.

Structs§

Dictionary
A PDF dictionary: ordered name → object entries.
ObjectId
An indirect object number together with its generation.
PdfString
A PDF string: the decoded bytes plus the syntax they were written with.
Stream
A stream object: a dictionary plus the raw bytes between stream and endstream.

Enums§

Object
A PDF object: any value that can appear inside a document.
StringFormat
The syntax a PdfString is written with.