nikhil
nikhil

Reputation: 9363

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?

Upvotes: 0

Views: 2449

Answers (2)

weismat
weismat

Reputation: 7411

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

Upvotes: 2

IllvilJa
IllvilJa

Reputation: 228

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

Upvotes: 0

Related Questions