Working with the annotation of the PDF file using Page.first_annot #1841
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Annotations of a PDF page are stored within its object definition as an array of xref numbers that looks like so:
The page properties But you could do this when needed: |
Beta Was this translation helpful? Give feedback.
Annotations of a PDF page are stored within its object definition as an array of xref numbers that looks like so:
/Annots [ 5 0 R 9 0 R]
. Here you can deduct, that annot with xref 9 was created after annot with xref 5 had been created.New annotations are appended to this array. So the sequence is no indication for the items' positions on the page.
The page properties
first_link
,first_annot
,first_widget
and the associated iterators walk through t…