如何使用杂技.exe在线(非本地或网络内)打印pdf文件



>我正在尝试使用命令行打印在线pdf文档,如下所示。

"C:Program Files (x86)AdobeAcrobat 2015AcrobatAcrobat.exe"  /t "http://example.com/file1.pdf#fdf=http://example.com/data1.fdf" "\PrinterName" "" ""

它说文件名,卷名或目录不正确。有什么方法可以在不在本地复制pdf文件的情况下进行打印?

可以创建批处理命令吗?

创建一个批处理命令,类似于"AcroPrnt.bat"(或"AcroPrnt.cmd"(

在批处理命令中:

wget (or curl) %1 (the file to download and print) > tempAcro.pdf
wget (or curl) %2 (the fdf file)
"C:Program Files (x86)AdobeAcrobat 2015AcrobatAcrobat.exe"  /t tempAcro.pdf#fdf=%2 "\PrinterName" "" "" 
del tempAcro.pdf

然后使用

AcroPrnt "http://example.com/file1.pdf" "http://example.com/data1.fdf"

除非您下载 curl 或 wget,否则此代码将不起作用,我们需要相应地修改脚本。

从 http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf 收集的信息

最新更新