Replies: 4 comments 2 replies
-
By design, All you can do is recreating links yourself on the target page: every annotation must be a child of the page that shows it - the target page in our case. You must write code that extracts the links of the source page links = srcpage.get_links()
tarpage.show_pdf_page(bbox, srcdoc, srcpage.number)
mat = srcpage.rect.torect(bbox) # compute transformation matrix
for link in links: # recreate links on target page
link["from"] *= mat # convert to target coordinates
tarpage.insert_link(link) Please note:
|
Beta Was this translation helpful? Give feedback.
-
Ah, I just realized that I did not understand your request. |
Beta Was this translation helpful? Give feedback.
-
You can only "import" source pages of a PDF - and then optionally only show sub-rectangles of it on the target. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation, so PDF is in essence static in this aspect |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to link to an external file using show_pdf_page?
The use case is to reference external graphics on an existing page without having to recreate the PDF
Beta Was this translation helpful? Give feedback.
All reactions