You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the PDF has outlines where the /XYZ destination has no top parameter. This is not in accordance with PDF reference however Acrobat Reader can process them. I pushed the test up to remove left parameter and the test is still good. I've added robustifcation for this case too.
cleaned test file below tt1.pdf
pubpub-zz
added a commit
to pubpub-zz/pypdf
that referenced
this issue
Oct 3, 2023
I am using the code below (https://stackoverflow.com/questions/54303318/read-all-bookmarks-from-a-pdf-document-and-create-a-dictionary-with-pagenumber-a) as a starting point and it crashes in several PDFs (see an example here: https://easyupload.io/7fsipz).
Apparently, the PDF itself has some structural errors, but pypdf is not able to ignore them.
The output:
The code (a direct use of the thread mentioned above).
The PDF file that is giving me an error can be found here:
Thanks guys!
The text was updated successfully, but these errors were encountered: