简体   繁体   English

在Adobe Acrobat中使用JavaScript在另一个PDF内创建的框架内显示PDF

[英]Display a PDF inside a frame created within another PDF using JavaScript in Adobe Acrobat

I want to display the selected pages of a PDF(existing in local machine) inside a window/frame of another PDF file(existing in local machine) in ADOBE Acrobat. 我想在ADOBE Acrobat中的另一个PDF文件(存在于本地计算机中)的窗口/框架内显示PDF(存在于本地计算机中)的选定页面。 How can i go about it . 我该怎么办。 I searched online but i seem to not find any solution . 我在网上搜索,但似乎找不到任何解决方案。 If there is any other way to do this without using java script, is acceptable too. 如果有其他方法可以不使用Java脚本来执行此操作,则也可以接受。

You may have missed the keywords… 您可能错过了关键字...

What is pretty common and easy to implement is importing the according page as an icon in a Button field. 非常常见且易于实现的是将相应页面作为按钮导入“按钮”字段中。

The simplest approach would be using the buttonImportIcon() Acrobat JavaScript method (note the requirements for higher privileges). 最简单的方法是使用buttonImportIcon() Acrobat JavaScript方法(请注意更高权限的要求)。 This method allows you to specify the file and the page to be imported. 此方法允许您指定文件和要导入的页面。

If you're only doing this when you're authoring the PDF and it doesn't need to be dynamically created, you can simply add a button field and then set the icon property to the PDF you want to show. 如果仅在创作PDF时才这样做,并且不需要动态创建,则只需添加一个按钮字段,然后将icon属性设置为要显示的PDF。 If you need to do it programmatically, Max's answer will also work. 如果您需要以编程方式进行操作,Max的答案也将起作用。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM