Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

any working PDF parsers ?

by opensourcer (Monk)
on Sep 22, 2010 at 18:42 UTC ( #861335=perlquestion: print w/replies, xml ) Need Help??
opensourcer has asked for the wisdom of the Perl Monks concerning the following question:

Hi, are there any working pdf parser available for perl, because I have tried all them. Following is output of PDF module.
Bad object reference ' ' at line 6 Bad object reference ' ' at line 6 Bad object reference ' ' at line 6
and the perl code is
use Data::Dumper; use PDF; $filename ="out.pdf"; $pdf=PDF->new($filename);
I have also tried PDF::Parser, CAM::PDF and PDF::FDF::Simple. I'm trying every one of them on debian lenny (5.0.6) and perl, v5.10.0

Replies are listed 'Best First'.
Re: any working PDF parsers ?
by Corion (Pope) on Sep 22, 2010 at 18:56 UTC

    Are you sure that your file is a valid PDF file? Because PDF (resp. PDF/ raises that error message when the file contains an invalid object reference line.

      I tried like 15 pdf's

        As far as I'm aware, people use PDF::API2 successfully. I don't know about the others.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://861335]
Approved by NiJo
[Tux]: so, another app with gtk GUI had something similar, but it defined the IM_MODULE(s) as cedilla.
[Tux]: when I set QT_IM_MODULE and GTK_IM_MODULE both to c<xim> and *unset* XMODIFIERS, all works fantastic
Tux => $HOME

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-09-25 21:11 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (291 votes). Check out past polls.