in reply to Extract all pages from pdf

...and also PDF::API2.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: Extract all pages from pdf
by leocharre (Priest) on Dec 16, 2008 at 16:48 UTC
    Yeah, the thing with PDF::API2 and CAM::PDF, is that I've found they may or may not work to do this on a certain architecture. PDF::Burst has the various methods to blow up a pdf doc into single pages. It uses PDF::API2, CAM::PDF, etc. So if one doesn't work, you use the other, same arguments, etc.
      I extracted all pages from pdf file using "PDF::Extract". If i open that extracted pdf it open correctly. But if i try to close it asked yes or no dialog box. Could you please explain how to rectify this problem.

      Code:
      use PDF::Extract;
      $pdf=new PDF::Extract( PDFDoc=>"C:\\sample.pdf");
      $i=1;
      $i++ while ( $pdf->savePDFExtract( PDFPages=>$i ) );

      Thanks,
      Prabudass
        You said you want to extract pages one by one from a pdf. I suggested you try PDF::Burst, read the docs, try it out.