How to extract internal links using PyPDF #2911
-
I am trying to extract internal links. This is what I have.
I'm unable to get the page number from |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
I convert this thread into a discussion as this is not an issue |
Beta Was this translation helpful? Give feedback.
-
this should provide with the page number in your case:
be aware that all links are not using directly |
Beta Was this translation helpful? Give feedback.
-
Final answer: For non-named links: #2911 (reply in thread) |
Beta Was this translation helpful? Give feedback.
The following should work:
For the corresponding syntax, see table 149 of the PDF 2.0 specification.
Full code (slightly modified):