How to extract pages from PDF using PDFTK

PDFTK can be used to extract certain pages from one or more PDF files into a new PDF.

To install PDFTK, please follow the instructions here.

Commands like these can be used to extract pages from a PDF file:

# Extract pages 1-3
pdftk in.pdf cat 1-3 output out.pdf

# Extract pages 2, 4 and 6
pdftk in.pdf cat 2 4 6 output out.pdf

# Extract pages 1-3 and 6-10
pdftk in.pdf cat 1-3 6-10 output out.pdf

# Extract pages 1-3 from first and 6-10 from second file
pdftk A=first.pdf B=second.pdf cat A1-3 B6-10 output out.pdf

Tried with: PDFTK 1.44

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.