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]ordict[alt](inline-image abbreviations), dereferenced.- get_
bool - get_
bool2 get_booloverkeyor its inline-image abbreviationalt.- get_
dict - get_int
- get_
int2 get_intoverkeyor its inline-image abbreviationalt.- get_
name - get_num
- name
- num
- nums
- An array of numbers (references resolved),
Noneif not an array. - resource
- A resource
kind/namefrom a resources dictionary. - stream_
data - The decoded bytes of a stream,
Noneon a filter this build cannot undo.