Is there any Perl script to get the pages from a PDF file and convert the same to another PDF file?
A:
Interactively, there is the full version of Acrobat. Programatically there is the Acrobat SDK from Adobe and lots of 3rd party solutions. Google Acrobat API.
MarkB
2009-01-06 15:05:40
+2
A:
On OS X you can just do this in Preview, by dragging pages in the thumbnail view.
Peter Hilton
2009-01-06 15:06:19
+1
A:
As gnud already answered, pdftk is the best tool for the job. For example, to extract pages 5-10 from test.pdf to output.pdf you would write:
pdftk test.pdf cat 5-10 output.pdf
For the Windows version, you should download it from pdfhacks.com though, because the version there is newer than on accesspdf.com.
Most Linux distributions have it already on board or provide easy to install packages.
Andreas Thomas
2009-01-06 16:45:51
+2
A:
You asked for Perl, so here's a good solution via CAM::PDF. Say you just want pages 3-6 of orig.pdf to be saved to new.pdf:
deletepdfpage.pl orig.pdf 1-2,7- new.pdf
Chris Dolan
2009-01-07 05:10:32