5 Replies Latest reply on Feb 16, 2016 3:28 AM by Test Screen Name

    Function ImportIcon with URL

    developerSp Level 1

      Hello! I have a problem with the function ImportIcon, in order to insert a PDF into a button.

       

      My code is the following:

       

        app.beginPriv();    // Explicitly raise privilege

        this.importIcon("myIcon", Path, 0);

        app.alert(Path);

        app.endPriv();

       

      It works perfectly when I use a path from my disk, but we are trying to add PDF from a URL and then our problems begin. For example, we are trying with this URL with a PDF sample and we are not able to add it inside the button: http://www.orimi.com/pdf-test.pdf

       

      I don't know if there is any way to escape that URL to treat it like a Path, or some function to get it.

       

      Thanks a lot!