Read pdf files in perl
I have a 开发者_运维知识库collection of pdfs and would like to read those pdfs through a perl program. I just want to read and print those pdfs. Is there any module available in perl to do this?
If you want to automate printing, I would recommend to use the command line interface of the Acrobat reader.
If you want to parse the content, I would use CAM::PDF, but the results depend strongly on the pdf.
The command line parameters for printing are
AcroRd32.exe /t filename printername drivername portname
Depending exactly what you want to do with the PDFs and their contents (that is, do you want a perl module which essentially replaces Acrobat Reader, or do you just want to extract and print the text of the documents) CPAN might provide what you want as it contains quite a few modules related to PDFs: CPAN Search of PDF modules
精彩评论