Expand description
Writing objects back as PDF syntax.
Output is deterministic (dictionary keys are sorted, numbers have one spelling) so the same object always serializes to the same bytes.
Functionsยง
- to_
bytes objectin PDF syntax, as a byte vector.- write_
object - Appends
objectin PDF syntax. A stream is written as its dictionary followed bystream, its raw bytes andendstream.