PDF使用cmd和Adobe Acrobat合并(PDF Merge using cmd and Adobe Acrobat)

编程入门 行业动态 更新时间:2024-10-08 10:49:14
PDF使用cmd和Adobe Acrobat合并(PDF Merge using cmd and Adobe Acrobat)

我的情况 - 我有一个“进程”,其中任务计划程序启动一个批处理文件,该文件将Tableau中的PDF与某些过滤器一起导出到文件夹。 这些PDF中的每一个都是不同的。

File1forPerson1.pdf File2forPerson1.pdf File3forPerson2.pdf File4forPerson2.pdf

我想将2个PDF合并为1个文件-eg:

File1forPerson1.pdf,File2forPerson1.pdf File3forPerson2.pdf,File4forPerson2.pdf

没有外部程序可以做到这一点吗? 例如:

PDFTK iTextSharp的

是否可以使用任务计划程序自动执行此过程,或使用初始批处理文件自动启动此过程。 合并PDF后,使用任务计划程序通过电子邮件发送它们。 这可能会导致问题吗? 非常感谢您对此的任何帮助,谢谢

在这里找到了一些有用的信息和一个很好的答案: https : //superuser.com/questions/389760/adobe-acrobat-how-to-batch-to-combine-multiple-pdf-files

My situatuion - I have a "process", in which Task Scheduler launches a Batch file which exports PDFs from Tableau with certain filters to a Folder. Each of these PDFs are different.

File1forPerson1.pdf File2forPerson1.pdf File3forPerson2.pdf File4forPerson2.pdf

I would like to merge 2 PDFs into 1 file -eg:

File1forPerson1.pdf, File2forPerson1.pdf File3forPerson2.pdf, File4forPerson2.pdf

Is it possible to do this without an external program? eg:

pdftk iTextSharp

Would it be possible to automate this process using Task Scheduler or to use the initial batch file to start this process automatically. After the PDFs are merged they are sent via email using task scheduler. Is this something that could cause problems? Any help on this is very much appreciated, Thank You

Found some useful information and an excellent answer here: https://superuser.com/questions/389760/adobe-acrobat-how-to-batch-to-combine-multiple-pdf-files

最满意答案

你说“没有外部程序”,但你的标题是“Adobe Acrobat”,这是一个外部程序。

对于第一部分,不,Windows没有任何本机PDF合并功能。

对于第二部分,来自Adobe SDK FAQ :

您可以从命令行使用Acrobat和Adobe Reader显示和打印PDF文件。 这些命令不受支持,但对某些开发人员有用。 除了下面列出的内容之外,没有这些命令的文档。

命令显示:

/n Start a separate instance of Acrobat or Adobe Reader, even if one is currently open. /s Suppress the splash screen. /o Suppress the open file dialog box. /h Start Acrobat or Adobe Reader in a minimized window

所以不,Adobe Acrobat不提供命令行选项。 你需要第三方

You say "no external programs" but your title says "Adobe Acrobat" which is an external program.

For the first part, no, Windows does not have any native PDF merging capabilities.

For the second part, from the Adobe SDK FAQ:

You can display and print a PDF file with Acrobat and Adobe Reader from the command line. These commands are unsupported, but have worked for some developers. There is no documentation for these commands other than what is listed below.

And the commands show:

/n Start a separate instance of Acrobat or Adobe Reader, even if one is currently open. /s Suppress the splash screen. /o Suppress the open file dialog box. /h Start Acrobat or Adobe Reader in a minimized window

So no, Adobe Acrobat does not offer a command line option. You will need a third party

更多推荐

本文发布于:2023-07-04 09:22:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1022340.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:cmd   PDF   Adobe   Merge   Acrobat

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!