|Perl Monk, Perl Meditation|
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||Need Help??|
punch_card_don has asked for the
wisdom of the Perl Monks concerning the following question:
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....
Time flies like an arrow. Fruit flies like a banana.