in reply to Win32::OLE Access Acrobat file menu?

Hi!
How about using CAM::PDF?
My solution looks like this:
use strict; use warnings; use CAM::PDF; my($pdfFile,$pdfText,$numpages,$pagecounter,$textfile); $pdfFile = CAM::PDF->new('c:/Downloads/test.pdf'); $numpages = $pdfFile->numPages(); open($textfile,">",'test.txt'); for ($pagecounter = 1;$pagecounter <= $numpages;$pagecounter++) { $pdfText = $pdfFile->getPageText($pagecounter); # check whether the respective page contains text at all if (defined($pdfText)) { print $textfile $pdfText; } } close($textfile);

Currently, I'm using ActiveState Perl 5.10 on a Windows XP(SP3) Laptop.

Have a nice day!

Replies are listed 'Best First'.
Re^2: Win32::OLE Access Acrobat file menu?
by cormanaz (Deacon) on Jan 30, 2009 at 16:46 UTC
    OK that did it. ++ Thanks angiehope!

    BTW if anyone tries using this mod see and gets an error "Unable to open FlateDecode" see this node. I upgraded to Compress-Zlib 2.015 and it did the trick (PPM wouldn't allow uninstall).

Re^2: Win32::OLE Access Acrobat file menu?
by cormanaz (Deacon) on Jan 30, 2009 at 16:11 UTC
    Where did you find that mod? PPM doesn't show it in Activestate, Winnipeg, or Bribes. DOH--scratch that. I was looking at "installed packages." It's there and I will give it a try.