1 Reply Latest reply on Apr 4, 2012 5:35 AM by Santanu Karar

    Problem loading PDF with AIR 2.0

    Santanu Karar Level 1

      Hi,

       

      I'm using Flash Builder 4.0.1 and my AIR application namespace version is 2.0 (as by default). I'm trying with a code described into Adobe Help, but what I'm getting is a blank black screen, When I changed the 'location' to something else (any website), it works well, the PDF location is valid that I can assure.

       

      var htmlLoader:HTMLLoader = new HTMLLoader();

      var tmpUIComponent : UIComponent = new UIComponent();
      var pdfUrl:URLRequest = new URLRequest("http://www.adobe.com/devnet/flex/pdfs/getting_started_with_Flex3.pdf");
      htmlLoader.load(pdfUrl);
      htmlLoader.width = tmpUIComponent.width = 1024;
      htmlLoader.height= tmpUIComponent.height = 768;
      tmpUIComponent.addChild(htmlLoader);

      addElement(tmpUIComponent);

       

       

      Btw, I've installed Adobe Acrobat 9.1.0 in my system.

       

      Any help would be very appreciated. Thank you.

       

      With Regards,

       

      Santanu