-
Notifications
You must be signed in to change notification settings - Fork 186
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
Help: Copy all page content to a new pdf file #37
Comments
There are many objects related to pages, in Resources. To merge 2 pdf files, merge all the objects, then rearrange trailer, Catalog and Pages objects. |
Hi i'm interested in this did you achieve @bn3t ? |
@J-F-Liu is this easy to do? can you provide some tips or some sample code? |
I use pdfunite to do the job. |
I meant if it is easy to do with |
It is possible, but need to sort out a detailed algorithm. |
It seemed far fetched for me to do it with lopdf. I still use the tool I wrote in go and does exactly what I needed: /~https://github.com/bn3t/pdfmerge. |
Can this issue be closed now? There is an example for merging PDFs in the docs now. |
Yes thanks a lot. |
Hi,
I want to merge pages from 2 pdfs files into one. I already have such a tool that I wrote in GO but I want to rewrite it in Rust using lopdf.
This is the state of where I am: https://gist.github.com/bn3t/1508f3526bc4ca894f818182bf23e602. It tries to copy page 1 of the input document to the doc document but still produces a white page.
Would you be so kind to indicate the step needed to achieve this?
The text was updated successfully, but these errors were encountered: