[英]How can I use javascript to open a navigation pane in Adobe Acrobat DC?
Is there a way to use javascript in Adobe Acrobat DC to open a specific Navigation Pane?有没有办法在 Adobe Acrobat DC 中使用 javascript 打开特定的导航窗格? I've been struggling to find suitable documentation for this, so I'm asking here.
我一直在努力为此找到合适的文档,所以我在这里问。
I've got a button that allows a user to attach documents to the PDF file, which works great.我有一个按钮,允许用户将文档附加到 PDF 文件,效果很好。 The issue here is that I can't set the attachments pane to stay open.
这里的问题是我无法将附件窗格设置为保持打开状态。 I can execute the menu command to show/hide attachments, which works great for one attachment, but then as soon as you add the second attachment the pane closes, which is less than ideal (and then it opens with the third attachment, closes with the fourth, etc., etc.).
我可以执行菜单命令来显示/隐藏附件,这对一个附件很有用,但是一旦添加第二个附件,窗格就会关闭,这不太理想(然后它打开第三个附件,关闭第四等,等等)。
Is there a bit of code that can solve this issue, or some other setting in the document that will achieve the same effect automatically?是否有一些代码可以解决这个问题,或者文档中的一些其他设置会自动达到相同的效果? Please note that my end users are not the most tech savvy of folks, so some way that minimizes button clicking to display the attachments is ideal.
请注意,我的最终用户并不是最精通技术的人,因此某种方式可以最大限度地减少按钮点击以显示附件是理想的。
Is there a way to use javascript in Adobe Acrobat DC to open a specific Navigation Pane?
有没有一种方法可以在Adobe Acrobat DC中使用javascript打开特定的导航窗格?
No. Acrobat JavaScript cannot control the navigation panes. 否。AcrobatJavaScript无法控制导航窗格。
I was researching the same problem and came across a solution using this undocumented function.我正在研究同样的问题,并使用这个未记录的函数找到了一个解决方案。
Right click on the button and go to Properties.右键单击该按钮并转到“属性”。
In the Actions tab, under Select Action choose Run a Java Script.在操作选项卡中,在选择操作下选择运行 Java 脚本。 Click Add and copy and paste this text:
单击添加并复制并粘贴此文本:
this.viewState = {overViewMode:7};
It works perfectly.它完美地工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.