antipaladin has asked for the wisdom of the Perl Monks concerning the following question:

I have been searching for a perl PDF module (such as PDF::Extract) that will allow me to split a PDF file into multiple smaller files by the PDF bookmarks. Has anyone come across such a module? If not, has anyone used one of the existing modules to determine the first and last page of a bookmarked section? If I get that far, I am confident that I could use PDF::Extract to split the file. Thanks! antipaladin

Replies are listed 'Best First'.
Re: Splitting PDFs by Bookmarks
by runrig (Abbot) on Jan 30, 2008 at 20:34 UTC
    pdftk extracts bookmark information (see the examples)...you could use that to extract specific page numbers.
      Awesome! That works great! Thank you. I noticed that pdftk is a C++ program. Do you happen to know if there is a way to do this using perl exclusively? I am just one of those weird people that likes to be able to see everything that is happening in a program. Again, thank you! pdftk seems to be an extremely awesome tool. :) antipaladin