mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:02:18 +02:00
qpdf: Add a few more common examples
This commit is contained in:
parent
6264907461
commit
d5f72e51e8
1 changed files with 17 additions and 1 deletions
|
@ -2,6 +2,22 @@
|
||||||
|
|
||||||
> Versatile PDF transformation software.
|
> Versatile PDF transformation software.
|
||||||
|
|
||||||
|
- Extract a few pages from a pdf into another one:
|
||||||
|
|
||||||
|
`qpdf --empty --pages {{input.pdf}} 1,6-8,12 -- {{output.pdf}}`
|
||||||
|
|
||||||
|
- Extract pages from multiple pdf files into one:
|
||||||
|
|
||||||
|
`qpdf --empty --pages {{file 1.pdf}} 1,6-8 --pages {{file 2.pdf}} 3,4,5 -- {{output.pdf}}`
|
||||||
|
|
||||||
|
- Write each group of n pages to a separate output file:
|
||||||
|
|
||||||
|
`qpdf --split-pages=n {{input.pdf}} {{page %d.pdf}}`
|
||||||
|
|
||||||
|
- Rotate and transform the PDF:
|
||||||
|
|
||||||
|
`qpdf --rotate=+90:2,4,6 --rotate=180:7-8 {{input.pdf}} {{output.pdf}}`
|
||||||
|
|
||||||
- Remove the password from a password protected file:
|
- Remove the password from a password protected file:
|
||||||
|
|
||||||
`qpdf --password={{password}} --decrypt {input_file.pdf}} {{output_file.pdf}}`
|
`qpdf --password={{password}} --decrypt {{input.pdf}} {{output.pdf}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue