gpt4 book ai didi

windows - 使用命令行打印特定的 PDF 页面

转载 作者:可可西里 更新时间:2023-11-01 09:28:09 25 4
gpt4 key购买 nike

我在 Windows 平台上工作。

可以在特定页面打开 PDF 文件:

AcroRd32.exe /A "page=3" "file.pdf"

打印特定页面是否有类似的解决方案?像这样的东西:

AcroRd32.exe /P "page=3" "file.pdf"

最佳答案

打印特定页面是否有类似的解决方案?

Something like:

AcroRd32.exe /P "page=3" "file.pdf"

没有。没有打印特定页面的选项。

您可以使用 /p 选项和 VBS(或类似)脚本来操作“打印”对话框并选择所需的页面进行打印:

AcroRd32.exe/p pathname — 执行 Adob​​e Reader 并显示“打印”对话框。

有关可能的命令行选项的列表,请参见下文。


如何在 Windows 上通过 Acrobat 和 Adob​​e Reader 使用命令行?

These are unsupported command lines, but have worked for some developers.

There is no documentation for these commands other than what is listed below. You can display and print a PDF file with Acrobat and Adobe Reader from the command line.

NOTE: All examples below use Adobe Reader, but apply to Acrobat as well.

If you are using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe on the command line.

AcroRd32.exe pathname — Executes Adobe Reader and displays the file, whose full path must be provided.

Other options for the command line are:

  • /n

    Launches a separate instance of Acrobat or Adobe Reader, even if one is currently open.

  • /s

    Opens Acrobat or Adobe Reader, suppressing the splash screen.

  • /o

    Opens Acrobat or Adobe Reader, suppressing the open file dialog.

  • /h

    Opens Acrobat or Adobe Reader in a minimized window.

AcroRd32.exe /p pathname — Executes Adobe Reader and displays the Print dialog box.

AcroRd32.exe /t path "printername" "drivername" "portname" — Initiates Adobe Reader and prints a file, whose path must be fully specified, while suppressing the Print dialog box.

The four parameters of the /t option evaluate to path, printername, drivername, and portname (all strings).

  • printername — The name of your printer.

  • drivername — Your printer driver’s name, as it appears in your printer’s properties.

  • portname — The printer’s port. portname cannot contain any / characters; if it does, output is routed to the default port for that printer.

来源Acrobat Developer FAQ

关于windows - 使用命令行打印特定的 PDF 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38698411/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com