in reply to CAM::PDF Not extracting

You don't seem to be checking for errors when opening the PDF:

my $pdf = CAM::PDF->new($filename) || die "$CAM::PDF::errstr\n";

CAM::PDF comes with various scripts including getpdftext, try running that against your PDF.

Martin

Replies are listed 'Best First'.
Re^2: CAM::PDF Not extracting
by jai_dgl (Beadle) on Sep 01, 2009 at 09:47 UTC
    my $pdf = CAM::PDF->new($filename) || die "$CAM::PDF::errstr\n";
    I tried the above syntax and got the error message as follows
    Incorrect password(s). The document cannot be decrypted.

    But this file does't seem to be password protected.
    Thanks
    Jey