in reply to How to invoke pdftotext and extract first line of text from PDF file?
open (FILE, "pdftotext -layout foo.pdf - |"); $title = <FILE>; print "<p>$title\n"; close FILE; [download]