Skip to main content

Module objects

Module objects 

Source
Expand description

Small lopdf helpers shared by the renderer’s modules.

Functions§

as_dict
as_stream
deref
Follow references (one level is enough: lopdf never nests them).
get
dict[key] dereferenced.
get2
dict[key] or dict[alt] (inline-image abbreviations), dereferenced.
get_bool
get_bool2
get_bool over key or its inline-image abbreviation alt.
get_dict
get_int
get_int2
get_int over key or its inline-image abbreviation alt.
get_name
get_num
name
num
nums
An array of numbers (references resolved), None if not an array.
resource
A resource kind/name from a resources dictionary.
stream_data
The decoded bytes of a stream, None on a filter this build cannot undo.