in reply to How to invoke pdftotext and extract first line of text from PDF file?
OK - figured it out - here's what worked for me:
Time flies like an arrow. Fruit flies like a banana.
open (FILE, "pdftotext -layout foo.pdf - |"); $title = <FILE>; print "<p>$title\n"; close FILE;
Time flies like an arrow. Fruit flies like a banana.
|
---|
In Section
Seekers of Perl Wisdom