I personally use CAM :: PDF.
my $doc=CAM::PDF->new($fileName) || die "$CAM::PDF::errStr\n"; CAM::PDF>asciify(/$pdfString);`
Pdfs are not intended for parsing, but for display / printing - in this way, everything always tries and error, and it is quite possible that it is impossible to parse if everything is graphics.
A good indicator is if you can copy and paste the contents from pdf into the editor. If this works, then you are in business.
source
share