Slice and Dice PDF


Using poppler-tools and psutils, you can extract a range of pages from a larger PDF file. For example, if you want to extract pages 11–14 of the PDF file afile.pdf, you could use the following command:

$ pdftops afile.pdf - | psselect -p11-14 | ps2pdf - file-p11-14.pdf

The pdftops command converts the PDF file to PostScript; the psselect command selects the relevant pages from the PostScript, and the ps2pdf command converts the selected PostScript into a new PDF file.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

looking for similar

Anonymous's picture

This and comments give me things to investigate tomorrow, but I have been looking for something that simply combines pdfs or images into one pdf.

Whitening System

Whitening System's picture

Poppler-tools and psutils if actually can command over the PDF file then great…!

Seriously I agree using

Dentist Melbourne's picture

Seriously I agree using poppler-tools and psutils, you can extract a range of pages from a larger PDF file.

bmx bikes

bmx bikes's picture

I found this option really of good use and great significance

pdftk is better

Tig's picture

I like to use pdftk for such things. The above line translates to:

"pdftk A=afile.pdf cat A11-14 output file-p11-14.pdf"

No converting to and from postscript.

There is another option

Stavros Christoforou's picture

You could use pdftk, which does everything without the need for conversion to/from ps.

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState