Extracting pages from PDF files under Linux


If you need to extract some pages from a PDF file under Linux, you can easily do it with pdftk:

pdftk A=infile.pdf cat ASP-EP output outfile.pdf

where:

infile is the input PDF file

outfile is the output PDF file

SP – start page

EP – end page

For example to extract pages from 36 to 40 from file infile.pdf you can use:

pdftk A=infile.pdf cat A36-40 output outfile_p36-40.pdf

If you do not have pdftk installed you can install it with yum on RPM based distributions:

sudo yum install pdftk
Advertisements
Tagged with: , , , ,
Posted in Linux

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: