2 Replies Latest reply on Sep 13, 2012 5:48 AM by ForrestGimp

    Loading jpg image as resource

    ForrestGimp Level 1



      I have found this http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.ht m?href=JS_Dev_Overview.71.1.html#1515775&accessible=true

      in the Acrobat 9 documentation. However this does not work. I tried this in an annotation-script:


      var a = new Resource("pdf://test.jpg");

      var myImage = new Image( a );


      As you can see, it is almost to the letter what is given in the example. There is no error-message. The consoleout this produces is the following:


      myImage=Image: "pdf://test.jpg" (0x0 pixels, 0 colors)