Welcome, Guest. Please login or register.
Did you miss your activation email?
08 Sep 2010, 03:51:24 UTC
Forum home
+  flexdeveloper.eu Forum
|-+  AIR
| |-+  AIR (Moderators: JMWhittaker, Jan K, thewarpedcoder, James)
| | |-+  Trouble getting PDF to display
« previous next »
Pages: [1] Print
Author Topic: Trouble getting PDF to display (Read 524 times)
wblakenc
Newbie FD
*
Posts: 2


« on: 22 Nov 2009, 21:01:37 UTC »

I have been searching the net and found a few different ways to display a PDF in an AIR app.  I can get a PDF to display using the users PDF client (which in my case opens FireFox and displays the PDF).  I would rather avoid this as I would like to embed the reader inside the AIR application.  After doing more research I found the following tutorial:

http://www.riacodes.com/flex/loading-pdf-files-in-air-with-flex/

Basically the tutorial embeds a web browser that is created in the AIR application which should be able to display the PDF.  This does not seem to work for me.  I can display regular web pages but when I try and get it to display a PDF nothing happens (just a blank white screen).  I have Acrobat 9.0 Pro on my computer so this "should" work but doesn't.  Any suggestions?
Logged
wblakenc
Newbie FD
*
Posts: 2


« Reply #1 on: 23 Nov 2009, 00:36:33 UTC »

Ok, figured out the problem.  Wasn't the code but the fact that AIR 1.5 does not like Adobe 9.2.  I had to update Adobe Air to 1.5.2.8900 which included a fix for the problem.

So long story short, if you are trying to display a PDF in an AIR application, make sure you are using the newest version of AIR otherwise you will most likely get a white screen.
Logged
flexy
flexdeveloper.eu
Guru/Addict FD
*****
Posts: 3,204


Recovering Coffee Addict & Adobe Expert


WWW
« Reply #2 on: 23 Nov 2009, 14:04:02 UTC »

Thanks for the tip!
Logged

James
Board Moderator
Newbie FD
*****
Posts: 56


WWW
« Reply #3 on: 26 Nov 2009, 22:16:36 UTC »

Indeed, good tip!
Logged
Pages: [1] Print
« previous next »
Share this on: Twitter Twitter Del.icio.us del.icio.us Digg Digg
Jump to:

©2006-2010 Flexdeveloper.eu/Jodie O'Rourke. All rights reserved.
Adobe®, Adobe® Flash™, Adobe® AIR™ and Adobe® Flex™ are registered trademarks of Adobe Systems Incorporated in the United States and other countries. All rights reserved.

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC