Hyperlinks - Page.insert_link - how to provide a zoomed destination? #1251
-
I would like to understand how does the zoom property work in consider the linkdict =
I use Bluebeam Revu to edit my PDF and add hyperlinks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
No magnification. The value is used to define the following destination format (see page 582 in https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf): |
Beta Was this translation helpful? Give feedback.
-
Yes, this unfortunately is like so. MuPDF's support for link is limited in that respect. This goes even back to MuPDF v1.10. In this version, all information returned for internal links (GoTo) is the page number and the top-left point on the target - nothing else. PyMuPDF's API is much richer and stems from pre v1.10 times. Since version v1.10 I am filling in values into the old API as best as is possible.
This is a bug. I forgot to accept a provided zoom value. Will be corrected in next version. The only supported format ever was As mentioned, |
Beta Was this translation helpful? Give feedback.
-
But it would need two more coordinates for the rectangle. I guess I don't see what actually could be saved here. |
Beta Was this translation helpful? Give feedback.
Yes, this unfortunately is like so. MuPDF's support for link is limited in that respect. This goes even back to MuPDF v1.10. In this version, all information returned for internal links (GoTo) is the page number and the top-left point on the target - nothing else.
PyMuPDF's API is much richer and stems from pre v1.10 times. Since version v1.10 I am filling in values into the old API as best as is possible.
I will adjust the documentation to make this clear.
This is a bug. I forgot to accept a provided zoom value. Will be corrected in next version. The only supported …