-2
通过使用.bat和.vbs。如何从1000个PDF中打印第一页?从1000的每一个打印第一页PDF
唯一的工作解决方案,我发现是:
Option Explicit
Const FILE_TO_PRINT = "n:\xxx\xxx\xxx\xxx\xxxx.PDF"
Dim shl
Dim fldr
Dim files,file
Set shl = CreateObject("Shell.Application")
Set fldr = shl.Namespace("n:\HEAT06\BAA Cards\66712\20161103\")
Set files = fldr.Items
For Each file in files
If LCase(file.Path) = LCase(FILE_TO_PRINT) Then
file.InvokeVerbEx("Print")
End If
Next
Set shl = Nothing
Set fldr = Nothing
Set files = Nothing
WScript.Quit
它的工作,但它会打印整个文档,当我只需要第一页。
Acrobat是否具有类似于Word.Application的界面? http://www.visualbasicscript.com/vbs-to-print-three-pages-from-ms-word-m70929.aspx – lit
哪个Programm用于PDF打印? Adobe Reader? – ReFran
@ReFran使用Adobe Acrobat 11 Pro – Denis