in reply to extract text from pdf
open $fh, "pdftotext whatever.pdf - |" or die; ... read text from $fh ... [download]
If I want just the PDFs text to use it for whatever (save it in a database, ...) I found this line quiete convenient:
my $txt = `pdftotext whatever.pdf -` or die 'ERROR running pdftotext'; say $txt; [download]
my $command_line = qq{pdftotext -enc 'UTF-8' '$path' -}; my $text = `$command_line` or die 'ERROR running pdftotext'; [download]