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

PDF Merging Issues #271

Open
bharat619 opened this issue Oct 25, 2023 · 4 comments
Open

PDF Merging Issues #271

bharat619 opened this issue Oct 25, 2023 · 4 comments
Assignees
Labels

Comments

@bharat619
Copy link

I am trying to merge 2 PDF's.
The first PDF does not have link. But the second PDF has links. By links, I mean that when I click on them it navigates to other part of the PDF.
The links works fine if I don't merge the PDF's. But when I merge the PDF, I loose the ability to link to other part of the PDF.

I am using the CLI, hexapdf merge a.pdf b.pdf output.pdf

Here b.pdf file has the links.

A thing to note:
If I do something like hexapdf merge b.pdf a.pdf output.pdf, the link works fine. But now I loose the order.

Am I missing something or doing something in a wrong way?

BTW, this is an awesome gem.

@gettalong gettalong self-assigned this Oct 28, 2023
@gettalong gettalong added the bug label Oct 28, 2023
@gettalong
Copy link
Owner

Thanks for the report!

You are not doing anything wrong. The way the hexapdf merge command currently works doesn't preserve that information. I will see how to change that.

@gettalong
Copy link
Owner

By links, I mean that when I click on them it navigates to other part of the PDF.

@bharat619 Are those links on the pages themselves or do you mean the outline feature of a PDF that shows in an extra part of the PDF viewer?

@anishnath
Copy link

Used https://8gwifi.org/merge-pdf.jsp for PDF merge with ordering it works

@gettalong
Copy link
Owner

gettalong commented Feb 18, 2024

@anishnath That is okay but you will need to do that manually and can't do it automatically like with HexaPDF. It might also be a problem with sensitive documents that one doesn't want to share with a website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants