Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-02 00:19:39 +00:00
parent 2b9882f70a
commit 22a84b91e2
42 changed files with 123 additions and 81 deletions

View File

@@ -6,23 +6,23 @@ source: https://github.com/tldr-pages/tldr.git
# pdfjam
> Shell frontend for the LaTeX pdfpages package for mingling PDFs.
> More information: <https://github.com/rrthomas/pdfjam>.
> More information: <https://github.com/pdfjam/pdfjam/blob/master/doc/pdfjam-help.txt>.
- Merge two (or more) PDFs:
`pdfjam {{path/to/file1.pdf}} {{path/to/file2.pdf}} --outfile {{path/to/output_file.pdf}}`
`pdfjam {{path/to/file1.pdf path/to/file2.pdf ...}} {{[-o|--outfile]}} {{path/to/output_file.pdf}}`
- Merge the first page of each file together:
`pdfjam {{files...}} 1 --outfile {{path/to/output_file.pdf}}`
`pdfjam {{path/to/file1.pdf 1 path/to/file2.pdf 1 ...}} {{[-o|--outfile]}} {{path/to/output_file.pdf}}`
- Merge subranges from two PDFs:
`pdfjam {{path/to/file1.pdf 3-5,1}} {{path/to/file2.pdf 4-6}} --outfile {{path/to/output_file.pdf}}`
`pdfjam {{path/to/file1.pdf 3-5,1}} {{path/to/file2.pdf 4-6}} {{[-o|--outfile]}} {{path/to/output_file.pdf}}`
- Sign an A4 page (adjust delta to height for other formats) with a scanned signature by overlaying them:
`pdfjam {{path/to/file.pdf}} {{path/to/signature}} --fitpaper true --outfile {{path/to/signed.pdf}} --nup "{{1x2}}" --delta "{{0 -842pt}}"`
`pdfjam {{path/to/file.pdf}} {{path/to/signature}} --fitpaper true {{[-o|--outfile]}} {{path/to/signed.pdf}} --nup "{{1x2}}" --delta "{{0 -842pt}}"`
- Arrange the pages from the input file into a fancy 2x2 grid:
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
- Reverse the order of pages within each given file and concatenate them:
`pdfjam {{files...}} {{last-1}} --suffix {{reversed}}`
`pdfjam {{path/to/file1.pdf last-1 path/to/file2.pdf last-1 ...}} --suffix {{reversed}}`