Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Converting PDF file to text

by cerian (Novice)
on May 12, 2017 at 17:13 UTC ( [id://1190139]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Apache::Tika;
    
    ...
    
    my $text = $tika->tika($pdf);
    print "$text\n";
    
  2. or download this
    use Apache::Tika::Async;
     
    ...
    use Data::Dumper;
    print Dumper $tika->get_meta($fn);
    print Dumper $tika->get_text($fn);
    
  3. or download this
    use Data::Dumper;
    use Apache::Tika::Server;
    ...
    
    my $fn = "x.pdf";
    print Dumper $tika->get_text($fn);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found