Losslessly extract pages from PDF to PDF

Step-by-Step descriptions of how to do things.

Losslessly extract pages from PDF to PDF

Postby peter_b » Tue Aug 29, 2017 4:09 pm

Here's a short HowTo for extracting pages from a PDF into another PDF on the commandline.

1) Install the "PDF Toolkit" (pdftk):
Code: Select all
$ apt-get install pdftk

2) Extract the pages:
Code: Select all
$ pdftk A=inputfile.pdf cat AXX-YY output output.pdf

Replace the following parameters with the ones for your use case:
  • inputfile.pdf: The source file
  • XX-YY: Pages to extract. From (XX) to (YY)
  • output.pdf: The output PDF file to create

Thanks to LinuxJournal article "Tech Tip: Extract Pages From a PDF" (by Kurt Pfeifle)
  • 0

User avatar
Posts: 302
Joined: Tue Nov 12, 2013 2:05 am
Reputation: 3

Return to HowTo's

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: Bing [Bot], Google [Bot] and 30 guests

Reputation System ©'