in reply to How to do in "PDF::Extract"?


savePDFExtract

$pdf->savePDFExtract(PDFPages=>"1 3-6",
PDFDoc=>'C:/my.pdf', PDFCache=>"C:/myCache" );

If there is an error then an error page will be served and savePDFExtract will return a "0". Otherwise savePDFExtract will return "1" and the saved PDF location and file name will be "C:/myCache/my1_3..5.pdf".
Full Text:
http://search.cpan.org/~nsharrock/PDF-Extract-3.03/Extract.pm#savePDFExtract

Hmm? Where is the error?
MH

Replies are listed 'Best First'.
Re^2: How to do in "PDF::Extract"?
by prabudass (Novice) on Dec 18, 2008 at 11:35 UTC
    As per your advice, i modified that code. No error found but my problem not solved. I opened the extracted output pdf file and then without any modification i closed it. It shows the Acrobat dialog window "Do you want to save changes to "my1.pdf" before closing?". Could you please help me.

    Thanks,
    Prabudass

      If i understand it right (and others suggested), this window comes from Acrobat so there is maybe no opportunity to control this window with your perl code, maybe you could tune Acrobat to "autosave" or something, but i dont own Acrobat ...

      MH
      Try Ghostview/SumatraPDF/Foxit/Inkscape instead.
      Try This Code. it will help for you. Hope
      $pdfextract=new PDF::Extract(PDFDoc=>"input path with pdf file"); $i=1; while($pdfextract->savePDFExtract(PDFPages=>$i,PDFCache=>" destination +path")) { $i++; + }
      This code work for me Fine...