Skip to content

How to extract info from IndirectObject? #1394

Answered by pubpub-zz
Nivdc asked this question in Q&A
Discussion options

You must be logged in to vote

(Sorry for previous short answer, I had only my phone with me)
Objects (pages properties, contents,...) are stored within the PDF as objects which are identified with an id and a generation. those objects are stored in the pdf and most of the time the xref table stores the lookup table from (id,gen) to object position within the pdf. Within the pdf the objects will start with header (id) (gen) obj and a trailer endobj
the IndirectObject is a pointer which is encoded as "(id) (gen) R" and provide a way to point to objects. get_object() returns the pointed data.
as a simplifcation if you use the standard key call (such as ["/Page"]), an implicit call to the get_object() is provided.
note th…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@Nivdc
Comment options

@Nivdc
Comment options

@pubpub-zz
Comment options

@Nivdc
Comment options

Comment options

You must be logged in to vote
1 reply
@Nivdc
Comment options

Answer selected by Nivdc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants