Some Pdf Parse Outline Failed
ZLATAN628 opened this issue · 2 comments
I am working on my personal project (https://github.com/ZLATAN628/pdf-terminal-reader) which involves reading PDF files in the terminal. However, I have encountered a problem parsing outlines for this specific PDF: rust-book-zh-cn-shieber.pdf.
When debugging the get_outlines function, I discovered that the issue arises because the Action tag is treated as a Dictionary, not a Reference, contrary to what I expected. According to the PDF documentation, this behavior is permitted.
Therefore, I attempted to modify the function as follows:
This adjustment resolved the issue for me, but I am uncertain about potential negative implications it might have.
This fix is correct.
This fix is correct.
Thank you for confirming the fix! I have gone ahead and submitted a Pull Request to apply the solution to the project.