Skip to main content

Module object_stream

Module object_stream 

Source
Expand description

Object stream (ObjStm) parsing.

Object streams (PDF 1.5+) pack multiple non-stream objects into a single compressed stream. The stream contains a header with object numbers and byte offsets, followed by the objects themselves.

Structs§

ObjectStreamContents
Parsed contents of an object stream: a list of (object_number, object) pairs.

Functions§

get_object_from_stream
Get a specific object from a parsed object stream by its index.
parse_object_stream
Parse the decompressed contents of an object stream.