good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
How to invoke pdftotext and extract first line of text from PDF file?by punch_card_don (Curate) |
on Mar 28, 2010 at 22:54 UTC ( [id://831519]=perlquestion: print w/replies, xml ) | Need Help?? |
punch_card_don has asked for the wisdom of the Perl Monks concerning the following question:
Mushrooming Monks,
After quite some Googling of "perl extract text from pdf" and a host of related permutations, I've concluded that good old pdftotext (part of XPDF) is the best way to go when all you want is a plain text string out of a PDF file. (Including a Perlmonks post by the author of perl module CAM saying so) BUT - how, exactly, do I use it in my perl script? That is, if I have foo.pdf in a directory on my server, and my own csript extract_text_from_pdf.pl in my cgi-bin, what is the correct syntax for but let's not get unreasonable.... Thanks. Time flies like an arrow. Fruit flies like a banana.
Back to
Seekers of Perl Wisdom
|
|