Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: PDF extract

by PerlSufi (Pilgrim)
on Mar 31, 2013 at 12:57 UTC ( #1026351=note: print w/ replies, xml ) Need Help??


in reply to Re: PDF extract
in thread PDF extract

Thanks J, I meant to change that. I'll continue to try and figure out extracting PDF text..


Comment on Re^2: PDF extract
Re^3: PDF extract
by PerlSufi (Pilgrim) on Mar 31, 2013 at 20:50 UTC
    Here is what I have so far. When I tried to run it I got the error message Can't call method "getRootDict" on an undefined value..."
    use CAM::PDF; use PDF::API2; my $file_name = shift; my $pdfone = CAM::PDF->new('pdfone.pdf'); for my $page (1 .. $pdfone->numPages()) { my $text = $pdfone->getPageText($page); @lines = split (/\n/, $text); foreach (@lines) { my $pdf = CAM::PDF->new('new.pdf'); $pdfone->appendPDF($pdf); } }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026351]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-08-01 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls