让 PDF-Creator 抑制警告对话框而不停止构建过程
我有一个 msbuild 脚本,其中包括使用 PDF Creator 创建一些 PDF。这是正在使用的 Convert2PDF.vbs,将 doc 转换为 PDF,不久前它停止工作,似乎没有人花时间来修复它。因此,我对其进行了研究,通过调试脚本,我发现它实际上是一个文档,其中 Word 显示了一个对话框,其中包含有关内容大于页边距的信息。这使整个事情停止了,因为在自动构建期间没有人可以按此对话框。
所以我想知道是否有一种方法可以通过命令行参数或更改脚本告诉 PDF Creator 脚本来抑制此类警告并继续转换?
I have a msbuild script that includes creation of a few PDF's using PDF creator. It's the Convert2PDF.vbs that's being used, converting doc's to PDF's, and a while ago it stopped working and none seemed to take the time to fix it. So I looked into it and by debugging the script I found that it was in fact a document for which Word presented a dialog with information about contents being larger than the margins. This halted the entire thing since none could press this dialog during the auto-build.
So what I wonder is if there is a way to tell the PDF Creator script, via cmd line arguments or by altering the script, to suppress these kinds of warnings and just continue with conversion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过在 word 中创建一个脚本来解决这个问题,如果给定的文档位于指定的构建文件夹中,该脚本会抑制警告。
I solved this by creating a script in word that suppressed warnings if the given document resided within the build folder specified.