Inserting link to specific page of pdf(URI) #2160
Unanswered
aarthihWN
asked this question in
Looking for help
Replies: 1 comment 1 reply
-
Currently yes. But actually a good idea to include it in the "official" API. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a requirement to add a link to a pdf so that it opens another pdf on the internet on a specific page. Below is the sample code of my trial. Although the page number is mentioned, the document always opens on the first page.
link = {
"is_external" : True,
"kind" : fitz.LINK_URI,
"from" : rect[0],
"page" : 3,
"uri" : link to my pdf
}
The pymupdf documentation mentions 'The page number (in this or the target document) this destination points to. Only set if linkDest.kind is [LINK_GOTOR]'
So for LINK_URI, where do I set the target page number?
If I specify '#page=pagenumber' with the URI link, it does open the document on the specified page . Is this the only way?
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions