tldr/pages/common/qpdf.md

24 lines
653 B
Markdown
Raw Normal View History

2017-12-28 09:55:37 +00:00
# qpdf
> Versatile PDF transformation software.
2017-12-29 07:13:05 +00:00
- 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}}`
2017-12-28 09:55:37 +00:00
- Remove the password from a password protected file:
2017-12-29 07:13:05 +00:00
`qpdf --password={{password}} --decrypt {{input.pdf}} {{output.pdf}}`