Closed jonkgrimes closed 2 years ago
Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, other issues go into our backlog where they are assessed and fitted into the roadmap when suitable. If you need to get this done, consider buying a license which also enables you to use it in your commercial products. More information can be found on https://unidoc.io/
Hi @jonkgrimes, Thank you for reporting the issue and providing us with the details. This issue should be fixed on UniPDF v3.33.0 https://github.com/unidoc/unipdf-src/releases/tag/v3.33.0
Description
We're attempting to parse the outline of a few PDF documents and it appears that the page number is lost for some of the documents using the
GetOutlines
method on thePdfReader
object.The attached
BadOutline.pdf
document seems to have theDest
field on theOutlineItem
set tonull
and thus the page numbers are lost. The attachedGoodOutline.pdf
does not have that problem and is parsed correctly. Additionally, usingpypdf2
Python package the correct page numbers are parsed and can be displayed when parsing theBadOutline.pdf
(happy to provide that code as well).Expected Behavior
Actual Behavior
Attachments
I can reproduce the issue by copying the code from here:
BadOutline.pdf GoodOutline.pdf