简体   繁体   English

阅读perl中的pdf文件

[英]Read pdf files in perl

I have a collection of pdfs and would like to read those pdfs through a perl program. 我有一个pdfs的集合,并希望通过perl程序读取这些pdf。 I just want to read and print those pdfs. 我只想阅读并打印这些pdf。 Is there any module available in perl to do this? perl中是否有可用的模块来执行此操作?

If you want to automate printing, I would recommend to use the command line interface of the Acrobat reader. 如果您想自动打印,我建议使用Acrobat阅读器的命令行界面。
If you want to parse the content, I would use CAM::PDF, but the results depend strongly on the pdf. 如果你想解析内容,我会使用CAM :: PDF,但结果很大程度上取决于pdf。
The command line parameters for printing are 用于打印的命令行参数是

AcroRd32.exe /t filename printername drivername portname 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 完全取决于您想要对PDF及其内容做什么(也就是说,您想要一个基本上取代Acrobat Reader的perl模块,或者您只想提取和打印文档的文本)CPAN可能会提供您想要的内容因为它包含了很多与PDF相关的模块: CPAN搜索PDF模块

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM