Alternative options to pdftk package

I occasionally need to extract pages from pdf files. Until Fedora 20 it was a easy way to extract pdf pages using pdftk but now as pdftk is retired I started looking alternative option in Fedora 21 but could not find a simple tool like pdftk. But then while searching on google, I find this nice old page that described different ways to extract pages.

So, I tested page extraction using pdftops and gs and both are working fine on Fedora 21. Example if I need to extract first 2 pages of any pdf then I will use pdftops as

pdftops input.pdf  – | psselect -p1-2 | ps2pdf14 – output.pdf

The pdftk tool was having easy to use options but as we can see on this page, the simpler alternative is pdftops compared to gs command now. Hope to see more easy command to extract pages similar to pdftk in future.

 

 

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 )

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