1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 19:45:59 +02:00

pdfjoin: refresh (#5787)

This commit is contained in:
Janek 2021-06-07 21:44:02 +02:00 committed by GitHub
parent 4b097a1ed2
commit 0b828c5664
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,20 @@
# pdfjoin
> PDF merging utility.
> PDF merging utility based on pdfjam.
> More information: <https://github.com/rrthomas/pdfjam-extras>.
- Merge two PDFs:
- Merge two PDFs into one with the default suffix "joined":
`pdfjoin {{file1}} {{file2}} --outfile {{output_file}}`
`pdfjoin {{path/to/file1.pdf}} {{path/to/file2.pdf}}`
- Save pages 3 to 5 followed by page 1 to a new PDF:
- Merge the first page of each given file together:
`pdfjoin {{file 3-5,1}} --outfile {{output_file}}`
`pdfjoin {{path/to/file1.pdf path/to/file2.pdf ...}} {{1}} --outfile {{output_file}}`
- Merge subranges from two PDFs:
- Save pages 3 to 5 followed by page 1 to a new PDF with custom suffix:
`pdfjoin {{file1 3-5,1}} {{file2 4-6}} --outfile {{output_file}}`
`pdfjoin {{path/to/file.pdf}} {{3-5,1}} --suffix {{rearranged}}`
- Merge page subranges from two PDFs:
`pdfjoin {/path/to/file1.pdf}} {{2-}} {{file2}} {{last-3}} --outfile {{output_file}}`