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

pdfutil: Add ability to merge pdfs #340

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

einoj
Copy link
Contributor

@einoj einoj commented Oct 8, 2024

The --merge flag takes an arbritary list of pdfs and merges them into one.

Example:
pdfutil --merge A.pdf B.pdf --output C.pdf

Optionally it can be run without the --output flag, then it will save to merged.pdf.

If only 1 is given it will just create a copy of the original pdf.

The merge code is taken from examples/merge.rs. I use the layer variable to avoid the borrow checker from complaining when using .iter().enumerate().

The --merge flag takes an arbritary list of pdfs and merges them into
one.

Example:
        pdfutil --merge A.pdf B.pdf --output C.pdf

Optionally it can be run without the --output flag, then it will save
to merged.pdf.

If only 1 is given it will just create a copy of the original pdf.

The merge code is taken from examples/merge.rs. I use the layer variable
to avoid the borrow checker from complaining when using
.iter().enumerate().
@J-F-Liu J-F-Liu merged commit 7163c83 into J-F-Liu:master Oct 9, 2024
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants