<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community : All Content - All Communities</title>
    <link>https://forums.adobe.com/</link>
    <description>All Content in Adobe Community</description>
    <language>en</language>
    <pubDate>Tue, 11 Nov 2014 23:08:03 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-11-11T23:08:03Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>protect js code from view</title>
      <link>https://forums.adobe.com/thread/1632850</link>
      <description>&lt;!-- [DocumentBodyStart:02fd9e58-1a94-4f22-b98b-431143bbcdb8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;is it possible to protect its own code in Acrobat from view? For example I seen documents where the DocumentJavaScript in JavaScript Toolbar is locked, how to do that or are there maybe other approaches?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:02fd9e58-1a94-4f22-b98b-431143bbcdb8] --&gt;&lt;img src='/beacon?t=1415896861695' /&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">#javascript</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">lock files</category>
      <pubDate>Tue, 11 Nov 2014 23:08:03 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1632850</guid>
      <dc:date>2014-11-11T23:08:03Z</dc:date>
      <clearspace:dateToText>1 day 6 hours ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>destroy JavaScript objects</title>
      <link>https://forums.adobe.com/thread/1588975</link>
      <description>&lt;!-- [DocumentBodyStart:aa2144ae-4a20-422b-8d7b-3c4d1af78455] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;In order to reduce memory consuming I would try to delete JavaScript objects, arrays in my code, when they are not used more. Usually garbage collector deletes the objects without any references to them, is it enough to delete only references in Acrobat as well? Would you have any other suggestions? &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:aa2144ae-4a20-422b-8d7b-3c4d1af78455] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript;</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">garbage collector</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">delete object</category>
      <pubDate>Tue, 30 Sep 2014 05:12:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1588975</guid>
      <dc:date>2014-09-30T05:12:09Z</dc:date>
      <clearspace:dateToText>1 month 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>acrobat craches - how to manage RAM usage?</title>
      <link>https://forums.adobe.com/thread/1587987</link>
      <description>&lt;!-- [DocumentBodyStart:ac54cbec-3b01-4e5b-95af-41afec3a01ff] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I implemented a script for switching on and off a lot of lists of my pdf layers to the same time. The Acrobat crashes when I use it with big PDFs, around 60 layers. At first I though it would be an error, therefore I checked all the functions and added exception handling on every function. The program still crashes without throwing any exception( to be sure, I putted app.alert(...) in catch-block). Then I realized that the acrobat crashes if it involves up to 500 mb RAM, on other computer 450 mb. Can it occur at all, that it crashes cause of lack of memory? If yes, is it possible to manage it somehow? (increase more RAM for the program or delete some variables, which are not using more at runtime or there is some garbage collector)? I would appreciate any suggestions.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ac54cbec-3b01-4e5b-95af-41afec3a01ff] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript;</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">ram;</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">low_memory_crash</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">garbage collector</category>
      <pubDate>Mon, 29 Sep 2014 11:18:52 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1587987</guid>
      <dc:date>2014-09-29T11:18:52Z</dc:date>
      <clearspace:dateToText>1 month 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>identify parent layer</title>
      <link>https://forums.adobe.com/thread/1579236</link>
      <description>&lt;!-- [DocumentBodyStart:05e6fdf1-602e-457e-8f1f-ad54a9548ea3] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am implementing a function, which hides/shows (state=true/false) the layers. In order to show the sibling layers the parent layer should be shown as well. Otherwise a hint comes, that the parent layer is not active.&lt;/p&gt;&lt;p&gt;How can I identify a parent layer? or get a list of all the parent layers or get a parent layer from target sibling layer?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:05e6fdf1-602e-457e-8f1f-ad54a9548ea3] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">layer</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript;</category>
      <pubDate>Fri, 19 Sep 2014 12:01:24 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1579236</guid>
      <dc:date>2014-09-19T12:01:24Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>export layers name to an external file</title>
      <link>https://forums.adobe.com/thread/1563394</link>
      <description>&lt;!-- [DocumentBodyStart:aaa37d38-58d2-4f51-97b2-ea53c99b49a9] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Dear all,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;is it possible to export layers name( &lt;span style="color: #333333; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;this.getOCGs()[i].name &lt;/span&gt;) using JS to an external file(csv, xml etc.) in order to put the names into an excel file? &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks and regards,&lt;/p&gt;&lt;p&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:aaa37d38-58d2-4f51-97b2-ea53c99b49a9] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">export</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript;</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">layername</category>
      <pubDate>Tue, 02 Sep 2014 07:31:39 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1563394</guid>
      <dc:date>2014-09-02T07:31:39Z</dc:date>
      <clearspace:dateToText>2 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>show javascript window after closing</title>
      <link>https://forums.adobe.com/thread/1563397</link>
      <description>&lt;!-- [DocumentBodyStart:ee96fe6e-c933-40b9-8937-cec914dac0b8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;how to show the "javascript window" with my custom buttons again after it has been closed? I have a submenu with menu item (supposed "Show Buttons"), which calls a function for generating of buttons. After this window has been closed, the customer would select again "Show Buttons" in order to see it again. It is not possible, as the buttons are actually initialized and cannot not be initialized again with the same name. How can solve this issue?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;regards,&lt;/p&gt;&lt;p&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ee96fe6e-c933-40b9-8937-cec914dac0b8] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript;</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">addtoolbutton</category>
      <pubDate>Tue, 02 Sep 2014 07:53:04 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1563397</guid>
      <dc:date>2014-09-02T07:53:04Z</dc:date>
      <clearspace:dateToText>2 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>10</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>marquee zoom</title>
      <link>https://forums.adobe.com/thread/1558986</link>
      <description>&lt;!-- [DocumentBodyStart:21cd746a-528f-42b1-8a90-b9e27c1cc9ab] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Is it possible to execute short cuts using JS? or event call the marquee zoom by click on the custom button created with JS (app.addToolButton({...})? &lt;/p&gt;&lt;p&gt;It would be nice, that all buttons/functions which I need&amp;nbsp; are collected on one place using JS.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks and regards,&lt;/p&gt;&lt;p&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:21cd746a-528f-42b1-8a90-b9e27c1cc9ab] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javacript</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">"zoom</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">short cuts</category>
      <pubDate>Wed, 27 Aug 2014 14:19:53 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1558986</guid>
      <dc:date>2014-08-27T14:19:53Z</dc:date>
      <clearspace:dateToText>2 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>show image in different window</title>
      <link>https://forums.adobe.com/thread/1558605</link>
      <description>&lt;!-- [DocumentBodyStart:d1366635-e9d2-4a18-a2a5-ee06f8466d2f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Dear All,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;as mentioned in this thread (&lt;a class="jive-link-thread-small" data-containerId="3286" data-containerType="14" data-objectId="1551513" data-objectType="1" href="https://forums.adobe.com/thread/1551513"&gt;initialize dialog with img&lt;/a&gt;) there is bug in Acrobat XI to show an image in a dialog box crated using JS. Are there other possibilities to show the image in a different window (pop-up, create a new pdf and show in new window etc.)? &lt;/p&gt;&lt;p&gt;The image (legend for the map) is already imported in document on the second page, but it has to be shown to the same time when I am looking at the first page(map) in order to avoid scrolling down and up.&lt;/p&gt;&lt;p&gt;&lt;span style="color: #333333; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #333333; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;Any suggestions would be appreciated.&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks and regards,&lt;/p&gt;&lt;p&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d1366635-e9d2-4a18-a2a5-ee06f8466d2f] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">image</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript;</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">pop up</category>
      <pubDate>Wed, 27 Aug 2014 02:25:26 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1558605</guid>
      <dc:date>2014-08-27T02:25:26Z</dc:date>
      <clearspace:dateToText>2 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>extract image from layer(OCG)</title>
      <link>https://forums.adobe.com/thread/1557963</link>
      <description>&lt;!-- [DocumentBodyStart:a7cc3300-f8da-4c6a-9e77-3e0a3ce55ff0] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Dear all,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1"&gt;Is it possible to cut an image from a layer? I cannot find it in documentation &lt;span aria-label="Sad" class="emoticon-inline emoticon_sad" style="height:16px;width:16px;"&gt;&lt;/span&gt; . I am going to implement legend for a pdf with maps. The problem by placing legend into pdf is, that it not visible by zooming. The idea is to place the legend in a layer(supposed as an image), hide it and the plugin should extract the image into a dialog window, which is always visible with this image. &lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1"&gt;thanks and regards,&lt;/p&gt;&lt;p class="p1"&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a7cc3300-f8da-4c6a-9e77-3e0a3ce55ff0] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">image</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">export</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">layer</category>
      <pubDate>Tue, 26 Aug 2014 13:33:56 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1557963</guid>
      <dc:date>2014-08-26T13:33:56Z</dc:date>
      <clearspace:dateToText>2 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>build plugin xcode</title>
      <link>https://forums.adobe.com/thread/1554554</link>
      <description>&lt;!-- [DocumentBodyStart:d160487b-e74b-4b1b-b93a-6d2ab4364df4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I try to build the starter plugin using Xcode 4.5 in MacOs 10.7. Steps, which I done:&lt;/p&gt;&lt;p&gt;1. create a new Framework Library- &amp;gt; C/C++ Library -&amp;nbsp; is it right?&lt;/p&gt;&lt;p&gt;2. Imported the Starter folder into this project, but not found how to: "Add the &lt;span class="Courier" style="color: #000000; font-family: 'Courier New', monospace;"&gt;READER_PLUGIN&lt;/span&gt;&lt;span style="color: #000000; font-family: Verdana, sans-serif;"&gt; symbol to the Xcode project-level build settings by selecting the plug-in project in the Groups &amp;amp; Files pane and opening the Project Inspector. On the Build tab, under the GCC 4.0 Preprocessing settings, add &lt;/span&gt;&lt;span class="Courier" style="color: #000000; font-family: 'Courier New', monospace;"&gt;READER_PLUGIN=1&lt;/span&gt;&lt;span style="color: #000000; font-family: Verdana, sans-serif;"&gt; to the Preprocessor Macros setting."&lt;/span&gt;&lt;/p&gt;&lt;p&gt;3. Should I add PIMain, as described in Developing Plug-ins and Applications" v.8&amp;nbsp; documen&amp;nbsp; or&amp;nbsp; is it enough to put an alert &lt;span style="font-size: 10.000000pt; font-family: 'CourierStd';"&gt;AVAlertNote("This is your first plug-in");&amp;nbsp;&amp;nbsp;&amp;nbsp; in the main function of the class StarterInit.cpp? : &lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;ACCB1 ASBool ACCB2 PluginInit(&lt;span class="s1"&gt;void&lt;/span&gt;)&lt;/p&gt;&lt;p class="p1"&gt;{&lt;/p&gt;&lt;p class="p2"&gt;&lt;span class="s2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AVAlertNote(&lt;/span&gt;"This is your first plug-in"&lt;span class="s2"&gt;);&lt;/span&gt;&lt;/p&gt;&lt;p class="p3"&gt;&lt;span class="s2"&gt; &lt;/span&gt;return&lt;span class="s2"&gt; &lt;/span&gt;true&lt;span class="s2"&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p class="p1"&gt;}&lt;/p&gt;&lt;p class="p1"&gt;4. It builds successful.&lt;/p&gt;&lt;p class="p1"&gt;5. I cannot find any .api files to put in in plug_ins in Acrobat.&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1"&gt;Could you please give a link with explanation, as I only found the "Developing Plug-ins and Applications" v.8 and cannot find for v. XI. and this one, which doesn't explain exactly how to.&lt;/p&gt;&lt;p class="p1"&gt;&lt;a class="jive-link-external-small" href="http://help.adobe.com/livedocs/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Acrobat9_HTMLHelp&amp;amp;file=Plugins_Introduction.31.1.html" rel="nofollow"&gt;http://help.adobe.com/livedocs/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=Acrobat&amp;hellip;&lt;/a&gt;&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I would be very grateful for any help, as I've got confused with it!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d160487b-e74b-4b1b-b93a-6d2ab4364df4] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">build</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">xcode4</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">acrobat plugin</category>
      <pubDate>Fri, 22 Aug 2014 03:01:54 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1554554</guid>
      <dc:date>2014-08-22T03:01:54Z</dc:date>
      <clearspace:dateToText>2 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>plugin development - payment? and  difference to library app?</title>
      <link>https://forums.adobe.com/thread/1553975</link>
      <description>&lt;!-- [DocumentBodyStart:bb1af255-24f8-400f-a8f9-1159ac947aaf] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want to start plugin developing, as I have experience with C/C++ and want to extend some functions in Acrobat, like additional main menu, image importing etc. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;During the reading about first step of plugin development (&lt;a class="jive-link-external-small" href="http://help.adobe.com/livedocs/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Acrobat9_HTMLHelp&amp;amp;file=Plugins_ReaderPlug.52.1.html" rel="nofollow"&gt;http://help.adobe.com/livedocs/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=Acrobat&amp;hellip;&lt;/a&gt;) I've got some questions : &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1. "Adobe contacts you to obtain billing information" - does it mean, that the payment is required? I want to develop a plugin for private purposes. Do I need the private, public key or can I deploy it without it&amp;nbsp; on my computer ?&lt;/p&gt;&lt;p&gt;2. Where is the difference between plugin and library application?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:bb1af255-24f8-400f-a8f9-1159ac947aaf] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">development</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">acrobat plugin</category>
      <pubDate>Thu, 21 Aug 2014 14:27:02 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1553975</guid>
      <dc:date>2014-08-21T14:27:02Z</dc:date>
      <clearspace:dateToText>2 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>app.newDoc - set window(not document) size</title>
      <link>https://forums.adobe.com/thread/1553976</link>
      <description>&lt;!-- [DocumentBodyStart:53c5e24a-baf8-4a07-b614-a1167e72dffe] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&lt;span style="color: #333333; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #333333; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;I open a pdf File using JS in an other file, but the new Window is very big for this file and is active(over the original file) Can I set the size of the windows for a new document, i.e. are there parameters in the following function, like width, height and that new Acrobat window should be not active(is not placed over the origin(main) document)? I could not find it in documents like JSGuide and API.&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;app.openDoc({&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cPath: shortPath + "iconToHex.pdf",&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //windowWidth ?&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //windowHeight&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;});&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;Thanks and regards,&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:53c5e24a-baf8-4a07-b614-a1167e72dffe] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">opendoc</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">parameters;</category>
      <pubDate>Thu, 21 Aug 2014 14:32:24 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1553976</guid>
      <dc:date>2014-08-21T14:32:24Z</dc:date>
      <clearspace:dateToText>2 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>add menu Item to the root (cParent)?</title>
      <link>https://forums.adobe.com/thread/1552636</link>
      <description>&lt;!-- [DocumentBodyStart:32549bb1-ed83-4f5d-a098-5e0e2da3bc0b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Dear All,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;is it possible to add a menu Item to the root, i.e. new Menu item, which appears next to "Help" and not in "File", "Edit", etc. ? &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;regards,&lt;/p&gt;&lt;p&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:32549bb1-ed83-4f5d-a098-5e0e2da3bc0b] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript.</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">addmenuitem</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">menuitem</category>
      <pubDate>Wed, 20 Aug 2014 11:37:56 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1552636</guid>
      <dc:date>2014-08-20T11:37:56Z</dc:date>
      <clearspace:dateToText>2 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>initialize dialog with img</title>
      <link>https://forums.adobe.com/thread/1551513</link>
      <description>&lt;!-- [DocumentBodyStart:323cb7e6-b4bf-410c-a038-8a554b568199] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want to import img to a dialog, as it is shown here: &lt;a class="jive-link-external-small" href="http://xprepress.com/images-in-acrobat-dialog-2/" rel="nofollow"&gt;Images in Acrobat JavaScript Dialog Part 2 at Extra prepress&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I import my icon on the other way and it is loaded, as the button appears with this icon. The iconToHex.pdf has two images assigned to the fields: Button1 and img2.&amp;nbsp; The icon Button1 is imported to the button "Smile" and the other icon "img2 " I am trying to import into the dialog, but it doesn't work &lt;span aria-label="Sad" class="emoticon-inline emoticon_sad" style="height:16px;width:16px;"&gt;&lt;/span&gt;. The dialog appears with two buttons : "Close" and "Wink" and under the buttons is an Warning: JavaScript Window .I tried different icon sizes for&amp;nbsp; "img2 " : 20x20 and 200x200 as well, it doesn't work. Could you help me please to get the icon in the dialog.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;var importImg = app.trustedFunction(function(targetImg) {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var shortPath = "/Macintosh HD/Users/tmpAcrobat/";&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.beginPriv();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var doc = app.openDoc({&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cPath: shortPath + "iconToHex.pdf",&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bHidden: true&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.endPriv();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (e) {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.println("Could not open icon file: " + e);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myIcon = doc.getField(targetImg).buttonGetIcon();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var streamIcon = util.iconStreamFromIcon(myIcon);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return streamIcon;&lt;/p&gt;&lt;p&gt;});&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;// IMPORT IMAGES:&lt;/p&gt;&lt;p&gt;var oIcon = importImg("Button1");&lt;/p&gt;&lt;p&gt;var oSmile = importImg("img2");&lt;/p&gt;&lt;p&gt;var oWink = importImg("img2");&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;app.addToolButton({&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cName: "btnDialog",&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cEnable: true,&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oIcon: oIcon,&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cExec: "app.execDialog(myDialog)",&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cLabel: "Smile",&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cTooltext: "cTooltextSmile1",&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nPos: -1&lt;/p&gt;&lt;p class="p2"&gt;});&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;var myDialog = {&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Load the initial image&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; initialize: function(dialog) {&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.t = 1; // status value of the image&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialog.load({&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; img1: oSmile,&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // called when the 'wink' button pressed&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tumb: function(dialog) {&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (this.t == 0) {&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialog.load({&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; img1: oSmile,&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tumb: "Wink"&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialog.load({&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; img1: oWink,&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tumb: "Smile"&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // swap status value of the image&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.t = (this.t - 1) * -1;&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // called when cancel button pressed&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clos: function(dialog) {&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialog.end("cancel")&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // describes an appearance of the dialog box&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; description: {&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "Smile", // Dialog box title&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elements: [{&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: "image", // type of element&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 200, // height of the element in pixels&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 200, // width of the element in pixels&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item_id: "img1" // an ItemID of this element&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, {&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: "view",&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; align_children: "align_row",&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elements: [{&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // close button&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: "button",&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item_id: "clos",&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "Close"&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, {&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // image switcher button&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item_id: "tumb",&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: "button",&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "Wink"&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;};&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;regards,&lt;/p&gt;&lt;p&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:323cb7e6-b4bf-410c-a038-8a554b568199] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript.</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">icon;</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">dialog box</category>
      <pubDate>Tue, 19 Aug 2014 09:14:57 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1551513</guid>
      <dc:date>2014-08-19T09:14:57Z</dc:date>
      <clearspace:dateToText>2 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Import image using JS (preferred on document-level)</title>
      <link>https://forums.adobe.com/thread/1549201</link>
      <description>&lt;!-- [DocumentBodyStart:838cf083-7385-4fc2-839b-17d8467c0122] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello, &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1"&gt;I am going to implement a dynamic legend using JavaScript in Adobe Acrobat. The document contains a lot of layers. Every layer has an own legend. The origin idea is to implement the legend so, that it contains the images in a dialog box for the visible layers. I can only hide/show the layers by setting state to false or true (this.getOCGs()[i].state = false;) on document-level. &lt;/p&gt;&lt;p class="p2" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1"&gt;&lt;strong&gt;Question 1: Can I extract data from layer somehow&amp;nbsp; for legend establishing? I think no, as we only have these function on layers: getIntent(), setIntent() and&amp;nbsp; setAction(). Right? Therefore I decided to arrange it so, that all needed icons for every layer are saved in a folder with corresponding names. JavaScript should import the icons and I build the a dialog window with icons of visible Layers and place a text(description for this icon). &lt;/strong&gt;&lt;/p&gt;&lt;p class="p2" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1"&gt;&lt;span&gt;I tried all possibilities of image import described here: &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://pubhelper.blogspot.com.au/2012/07/astuces-toolbar-icons-et-javascript.html" rel="nofollow"&gt;http://pubhelper.blogspot.com.au/2012/07/astuces-toolbar-icons-et-javascript.html&lt;/a&gt;&lt;span&gt;. I got only one way (Convert the icons as hexadecimal strings). This way isn't good, as it is too much work to create with an other tool a hexadecimal string from a images and place it into a javascript code. &lt;/span&gt;&lt;/p&gt;&lt;p class="p1"&gt;Unfortunately, I cannot import image using other methods:(. Since the security settings in Adobe are changed after version 7 or so, it is not possible to use functions like app.newDoc, app.openDoc, even app.getPath On document-level. I decided to implement the import on the folder level using trusted functions like this: &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Variant 1:&lt;/p&gt;&lt;p class="p1"&gt;var importImg = app.trustedFunction(function() {&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.beginPriv();&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myDoc = app.newDoc({&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nWidth: 20,&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nHeight: 20&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var img = myDoc.importIcon("icon", "/icon.png", 0);&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.endPriv();&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return img;&lt;/p&gt;&lt;p class="p1"&gt;});&lt;/p&gt;&lt;p class="p1"&gt;var oIcon = importImg();&lt;/p&gt;&lt;p class="p2"&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="p2"&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;NotAllowedError: Security settings prevent access to this property or method.&lt;/span&gt;&lt;/p&gt;&lt;p class="p1"&gt;App.newDoc:109:Folder-Level:User:acrobat.js&lt;/p&gt;&lt;p class="p2" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;Variant 2:&lt;/p&gt;&lt;p class="p2"&gt;var importImg = app.trustedFunction(function() {&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var appPath = var phPath = app.getPath({&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cCategory: "user",&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cFolder: "javascript"&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.beginPriv();&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var doc = app.openDoc({&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cPath: phPath + "/icon.png",&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bHidden: true&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.endPriv();&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (e) {&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.println("Could not open icon file: " + e);&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p class="p2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var oIcon = util.iconStreamFromIcon(doc.getIcon("icon"));&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return oIcon;&lt;/p&gt;&lt;p class="p1"&gt;});&lt;/p&gt;&lt;p class="p1"&gt;var oIcon = importImg();&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2"&gt;Error: Could not open icon file: NotAllowedError: Security settings prevent access to this property or method.&lt;/p&gt;&lt;p class="p2"&gt;The settings in Preferences-&amp;gt;JavaScript-&amp;gt; JavaScript Security are disabled (Enable menu item JS execution privileges, enable global object security policy). &lt;/p&gt;&lt;p class="p2"&gt;&lt;strong&gt;Question 2: Is it not allowed or should I change some other settings or use the import on any other way?&lt;/strong&gt;&lt;/p&gt;&lt;p class="p2" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1"&gt;I tried all these possibilities with .jpg, .png, .pdf. with different sizes(big images and 20x20 pxls), It doesn't work.&lt;/p&gt;&lt;p class="p2"&gt;Could somebody help me, as I spent a lot of time with trying different possibilities. It would be actually better to implement the main goal described above on document level, &lt;strong&gt;are there other possibilities to access images, maybe using xml or something else) (Question 3)?&lt;/strong&gt;&lt;/p&gt;&lt;p class="p2" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1"&gt;Thank you and kind regards,&lt;/p&gt;&lt;p class="p1"&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:838cf083-7385-4fc2-839b-17d8467c0122] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript.</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">#javascript</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">security settings</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">import img</category>
      <pubDate>Sat, 16 Aug 2014 14:26:26 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1549201</guid>
      <dc:date>2014-08-16T14:26:26Z</dc:date>
      <clearspace:dateToText>2 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>expand all the layers using JS</title>
      <link>https://forums.adobe.com/thread/1550251</link>
      <description>&lt;!-- [DocumentBodyStart:62f96ed3-33ae-41d2-808f-54a1666e7720] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;is it possible to expand singe or all the layers using JS?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;regards,&lt;/p&gt;&lt;p&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:62f96ed3-33ae-41d2-808f-54a1666e7720] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">expand</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript.</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">layers;</category>
      <pubDate>Mon, 18 Aug 2014 06:37:45 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1550251</guid>
      <dc:date>2014-08-18T06:37:45Z</dc:date>
      <clearspace:dateToText>2 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>import image</title>
      <link>https://forums.adobe.com/thread/1549504</link>
      <description>&lt;!-- [DocumentBodyStart:cebee461-0e65-46d6-aaeb-8c455cd59627] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;Hello,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;I am going to implement a dynamic legend using JavaScript in Adobe Acrobat. The document contains a lot of layers. Every layer has an own legend. The origin idea is to implement the legend so, that it contains the images in a dialog box for the visible layers. I can only hide/show the layers by setting state to false or true (this.getOCGs()[i].state = false;) on document-level.&lt;/p&gt;&lt;p class="p2" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&lt;strong style="font-style: inherit; font-family: inherit;"&gt;Question 1: Can I extract data from layer somehow&amp;nbsp; for legend establishing? I think no, as we only have these function on layers: getIntent(), setIntent() and&amp;nbsp; setAction(). Right? Therefore I decided to arrange it so, that all needed icons for every layer are saved in a folder with corresponding names. JavaScript should import the icons and I build the a dialog window with icons of visible Layers and place a text(description for this icon).&lt;/strong&gt;&lt;/p&gt;&lt;p class="p2" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I tried all possibilities of image import described here: &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://pubhelper.blogspot.com.au/2012/07/astuces-toolbar-icons-et-javascript.html" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3a91d7;"&gt;http://pubhelper.blogspot.com.au/2012/07/astuces-toolbar-icons-et-javascript.html&lt;/a&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;. I got only one way (Convert the icons as hexadecimal strings). This way isn't good, as it is too much work to create with an other tool a hexadecimal string from a images and place it into a javascript code.&lt;/span&gt;&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;Unfortunately, I cannot import image using other methods:(. Since the security settings in Adobe are changed after version 7 or so, it is not possible to use functions like app.newDoc, app.openDoc, even app.getPath On document-level. I decided to implement the import on the folder level using trusted functions like this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;Variant 1:&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;var importImg = app.trustedFunction(function() {&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.beginPriv();&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myDoc = app.newDoc({&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nWidth: 20,&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nHeight: 20&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var img = myDoc.importIcon("icon", "/icon.png", 0);&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.endPriv();&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return img;&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;});&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;var oIcon = importImg();&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;NotAllowedError: Security settings prevent access to this property or method.&lt;/span&gt;&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;App.newDoc:109:Folder-Level:User:acrobat.js&lt;/p&gt;&lt;p class="p2" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;Variant 2:&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;var importImg = app.trustedFunction(function() {&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var appPath = var phPath = app.getPath({&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cCategory: "user",&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cFolder: "javascript"&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.beginPriv();&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var doc = app.openDoc({&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cPath: phPath + "/icon.png",&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bHidden: true&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.endPriv();&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (e) {&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.println("Could not open icon file: " + e);&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var oIcon = util.iconStreamFromIcon(doc.getIcon("icon"));&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return oIcon;&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;});&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;var oIcon = importImg();&lt;/p&gt;&lt;p class="p1" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;Error: Could not open icon file: NotAllowedError: Security settings prevent access to this property or method.&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;The settings in Preferences-&amp;gt;JavaScript-&amp;gt; JavaScript Security are disabled (Enable menu item JS execution privileges, enable global object security policy).&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;&lt;strong style="font-style: inherit; font-family: inherit;"&gt;Question 2: Is it not allowed or should I change some other settings or use the import on any other way?&lt;/strong&gt;&lt;/p&gt;&lt;p class="p2" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;I tried all these possibilities with .jpg, .png, .pdf. with different sizes(big images and 20x20 pxls), It doesn't work.&lt;/p&gt;&lt;p class="p2" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;Could somebody help me, as I spent a lot of time with trying different possibilities. It would be actually better to implement the main goal described above on document level, &lt;strong style="font-style: inherit; font-family: inherit;"&gt;are there other possibilities to access images, maybe using xml or something else) (Question 3)?&lt;/strong&gt;&lt;/p&gt;&lt;p class="p2" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;Thank you and kind regards,&lt;/p&gt;&lt;p class="p1" style="font-size: 12px; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333; background-color: #f8f8f8;"&gt;Alex&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cebee461-0e65-46d6-aaeb-8c455cd59627] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript.</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">prevents</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">acrobat 11</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">javascript code</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">import img</category>
      <pubDate>Sun, 17 Aug 2014 03:19:34 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1549504</guid>
      <dc:date>2014-08-17T03:19:34Z</dc:date>
      <clearspace:dateToText>2 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

