vba 如何阻止 Adob​​e Reader 在保存 PDF 表单时询问“另存为”(即只允许“保存”)?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23977075/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-12 03:19:54  来源:igfitidea点击:

How can I stop Adobe Reader from asking "Save As" when saving a PDF form (i.e. allow just "Save")?

vbapdfadobe-readerpdf-form

提问by dmc2005

Does anyone know how to call Adobe Reader from the command line to open a pre-populated Adobe Form (with Extensions enabled) e.g MRBIGSORDER0001.PDF, allow the user to alter it and then do a save and exit?

有谁知道如何从命令行调用 Adob​​e Reader 来打开预填充的 Adob​​e 表单(启用扩展),例如 MRBIGSORDER0001.PDF,允许用户更改它,然后保存并退出?

At present when the populated form is opened for updating, hitting Save or the Save button on the toolbar prompts the user with "Save As", which is causing them to create multiple versions.

目前,当打开填充的表单进行更新时,点击工具栏上的“保存”或“保存”按钮会提示用户“另存为”,这会导致他们创建多个版本。

回答by dmc2005

This issues appears to be related to new Security / Sandbox settings from Adobe Reader X onwards.

此问题似乎与 Adob​​e Reader X 以后的新安全/沙箱设置有关。

--

——

It is not clear exactly how to stop this from happening on a fine "level" but going to:

目前尚不清楚如何在良好的“水平”上阻止这种情况发生,但要:

Edit --> Preferences --> Security (Enhanced)

编辑 --> 首选项 --> 安全(增强)

Turning off "[ ] Enable Protected Mode at Startup" certianly stops this odd behavior cold.

关闭“[ ] 在启动时启用保护模式”肯定会停止这种奇怪的行为。



I am looking into "Priveledged Locations" settings to see if I can fine tune this.

我正在研究“Priveledged Locations”设置,看看我是否可以对此进行微调。

cheers,

干杯,

JonHD

乔恩HD

回答by today is a good day

Make sure you are not using the Preview pane in the windows View. If you just use the Navigation pane and not preview or details pane then you should be able to just save.

确保您没有使用 Windows 视图中的预览窗格。如果您只使用导航窗格而不是预览或详细信息窗格,那么您应该能够保存。

It's like windows is holding the file open and so it is an active file and you can't just do a save you have to do a save as.

这就像 Windows 将文件保持打开状态,因此它是一个活动文件,您不能只进行保存,而必须进行另存为。

I think it must be a bug with the windows update

我认为这一定是 Windows 更新的错误

回答by Bruno Lowagie

If you want end-users to be able to save a document that has been filled out, you need to Reader-enablethe form.

如果您希望最终用户能够保存已填写的文档,您需要为表单启用阅读器

Reader-enablingcan only be done with Adobe software as the concept consists of digitally signing the document using a private key owned by Adobe. This digital signature unlocks functionality in Adobe Reader that is otherwise only available in Adobe Acrobat.

阅读器启用只能使用 Adob​​e 软件完成,因为该概念包括使用 Adob​​e 拥有的私钥对文档进行数字签名。此数字签名解锁了 Adob​​e Reader 中的功能,否则只能在 Adob​​e Acrobat 中使用。

So, the solution is:

所以,解决办法是:

  • Make sure that the original form is reader-enabled (use Adobe Acrobat to do this),
  • Do not break the reader-enablingwhen pre-filling the form,
  • Thanks to the two previous steps, the "Save" button will work in your current set-up.
  • 确保原始表单已启用阅读器(使用 Adob​​e Acrobat 执行此操作),
  • 预填表格时不要破坏读者启用功能
  • 由于前面的两个步骤,“保存”按钮将在您当前的设置中起作用。