用perl读取pdf文件 [英] Read pdf files in perl

查看:84
本文介绍了用perl读取pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组 pdf 文件,想通过 perl 程序阅读这些 pdf 文件.我只想阅读和打印这些 pdf.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?

推荐答案

如果你想自动化打印,我建议使用 Acrobat reader 的命令行界面.
如果你想解析内容,我将使用 CAM::PDF,但结果在很大程度上取决于 pdf.
打印的命令行参数为

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 文件名打印机名驱动程序名端口名

AcroRd32.exe /t filename printername drivername portname

这篇关于用perl读取pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆