通过 VBA 将 PDF 文件与 PDF Creator 合并
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5338401/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Merge PDF files with PDF Creator via VBA
提问by BertS
I'm using the example code of PDFCreatorto create pdf's from my Access (2003) reports via VBA. This works fine, but now I want to merge several pdf's into a single one. PDF Creator is able to this via the Wait-button in the dialog, but I want to do this silent. Any ideas how to achieve this? I can't find sufficient documentations of the PDFCreator-class.
我正在使用PDFCreator的示例代码通过 VBA 从我的 Access (2003) 报告中创建 pdf。这很好用,但现在我想将几个 pdf 合并成一个。PDF Creator 可以通过对话框中的等待按钮完成此操作,但我想安静地执行此操作。任何想法如何实现这一目标?我找不到足够的 PDFCreator 类文档。
回答by Tony Toews
Take a look at the VB Script options in the C:\Program Files\PDFCreator\Scripts folder. Figure out which one you need. With a bit of work you can convert the VBScript code to VBA code.
查看 C:\Program Files\PDFCreator\Scripts 文件夹中的 VB 脚本选项。弄清楚你需要哪一个。通过一些工作,您可以将 VBScript 代码转换为 VBA 代码。
回答by Aaron C
The Scripts folder currently has VBA script for word. This will will slightly differently in Access. There is also bug that may effect you:
Scripts 文件夹当前包含用于 Word 的 VBA 脚本。这在 Access 中会略有不同。还有可能影响您的错误:
https://forums.pdfforge.org/t/any-idea-if-the-vba-bug-works-every-second-time-will-be-adressed/15668
https://forums.pdfforge.org/t/any-idea-if-the-vba-bug-works-every-second-time-will-be-adressed/15668