Skip to main content
October 16, 2014
Question

Cannot open PDF files in AIR app on Mac OS

  • October 16, 2014
  • 1 reply
  • 457 views

Hello,

I am having trouble opening a PDF file in adobe air application on Mac OS. I already installed adobe reader 11 and air on mac.

I also traced HTMLLoader.pdfCapatibility, which returns 3204 (An error was returned by the OS when trying to load the Adobe Reader or Acrobat application or one of its necessary libraries.) on Macs.

I am showing you some sample code to you.

if(HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK)

  {

       var request:URLRequest = new URLRequest(tempFile.url);

       pdf.load(request);

       var ui:UIComponent = new UIComponent();

        ui.addChild(pdf)

        container.addChild(ui);

}

  else

{

  trace("PDF cannot be displayed. Error code:",HTMLLoader.pdfCapability);

  }

it shows the output :  PDF cannot be displayed. Error code: 3204

Please let me know if anyone has any ideas ............asap

This topic has been closed for replies.

1 reply

Participating Frequently
December 1, 2014

I have the exact same problem. looking forward to hearing something from anyone too.