-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal Links are not working on merged PDF #1
Comments
Could this be related to Hopding/pdf-lib#341 ? I did notice that you're using a better maintained fork of pdf-lib |
Yeah, the issue you linked is the relevant upstream issue 👍. A simple API that allows manipulating Named Destinations in PDFs will likely not come soon to https://github.com/Hopding/pdf-lib or https://github.com/cantoo-scribe/pdf-lib. I think the best way forward would be to implement this functionality ourselves, based on the lower-level APIs of pdf-lib. Initially, I started some work on this but did not get very far. |
Sounds good then. I'm guessing that that is the only major pdf-lib issue? From what I remember, there are other issues like Hopding/pdf-lib#169 and Hopding/pdf-lib#140 which do have workarounds. If I want to help with implementing the named destinations API ourselves, where would I get started? I sadly know very little about the PDF file format. |
Great, yes, I think otherwise we can work pretty well with what pdf-lib provides! But good that you mention the Regarding this issue, I think the best way to get started would be creating/gathering some sample PDF documents with internal links (Probably easy to do with a simple LaTeX PDF with a So basically:
Finally, then combining all of this to actually preserve internal links in merged/reordered PDFs should not be too hard, hopefully. 😄 |
When merging multiple PDFs that contain references or links to different PDF locations, those no longer work in the merged PDF.
We already explore and collect all named destinations. We might somehow need to re-add them back to the merged PDF file.
Moreover, we will need to investigate further how references/links are implemented in PDFs.
The text was updated successfully, but these errors were encountered: