Skip to content
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

Keep internal links #100

Open
faroit opened this issue Mar 27, 2021 · 3 comments
Open

Keep internal links #100

faroit opened this issue Mar 27, 2021 · 3 comments
Milestone

Comments

@faroit
Copy link

faroit commented Mar 27, 2021

version 2.6 of the remarkable os supports internal links in PDFs. Without having done deeper analysis, to me it looks like p2r removes hyperlinks in its process. It that' really the case, this would be great to add as a feature.

@GjjvdBurg
Copy link
Owner

Thanks for reporting this @faroit. Can you provide an example of a file with hyperlinks that works when uploaded directly but not when uploaded with p2r?

@faroit
Copy link
Author

faroit commented Mar 28, 2021

Sure: https://arxiv.org/pdf/2103.03206.pdf, for example.

@GjjvdBurg
Copy link
Owner

GjjvdBurg commented Mar 28, 2021

Thanks for the link, I can confirm the bug. It seems to happen when cropping, but not when running with the --no-crop flag, which suggests that the problem is in the process_page function. This is strange because the metadata of the pages should be maintained since we switched to pikepdf.

If you'd like to debug this yourself I'd suggest looking there first. Alternatively, finalizing #95 would probably also solve this.

@GjjvdBurg GjjvdBurg added this to the Version 1 milestone Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants