From 24011cc085b76f15446a093f36c1eaf6fd00ecef Mon Sep 17 00:00:00 2001 From: Jaseem Abid Date: Wed, 3 Jan 2018 14:20:14 +0530 Subject: [PATCH] qpdf: Rewrite the whole file as per review comments --- pages/common/qpdf.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/common/qpdf.md b/pages/common/qpdf.md index 8ca5a58dd9..e9b710e452 100644 --- a/pages/common/qpdf.md +++ b/pages/common/qpdf.md @@ -2,21 +2,21 @@ > Versatile PDF transformation software. -- Extract a few pages from a pdf into another one: +- Extract pages 1-3, 5 and 6-10 from a PDF file and save them as another one: -`qpdf --empty --pages {{input.pdf}} 1,6-8,12 -- {{output.pdf}}` +`qpdf --empty --pages {{input.pdf}} {{1-3,5,6-10}} -- {{output.pdf}}` -- Extract pages from multiple pdf files into one: +- Merge (concatenate) a list of PDF files and save the result as another one: -`qpdf --empty --pages {{file 1.pdf}} 1,6-8 --pages {{file 2.pdf}} 3,4,5 -- {{output.pdf}}` +`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: +- Write each group of n pages to a separate output file with a given filename pattern: -`qpdf --split-pages=n {{input.pdf}} {{page %d.pdf}}` +`qpdf --split-pages=n {{input.pdf}} {{out_%d.pdf}}` - Rotate and transform the PDF: -`qpdf --rotate=+90:2,4,6 --rotate=180:7-8 {{input.pdf}} {{output.pdf}}` +`qpdf --rotate={{90:2,4,6}} --rotate={{180:7-8}} {{input.pdf}} {{output.pdf}}` - Remove the password from a password protected file: