Solved

Flash Builder Display Pdf

Posted on 2010-11-29
4
827 Views
Last Modified: 2012-05-10
Hello,

I have a database that has a list of pdf files in it and would like to display this list as a tilelist or in a datagrid, and allow the user to click on the filename and pop open the pdf in my application, I would like them to be able to zoom in and out and more importantly navigate to the next file in the database, I guess like paging in a datagrid,

Any ideas on how to implement this would be appreciated.

Cheers.
0
Comment
Question by:Stoater
4 Comments
 
LVL 5

Accepted Solution

by:
gingermoleman earned 200 total points
ID: 34232953
Hi,

Im a Flash user so cant rule out there being a class for flex, but for some odd reason PDF inside an SWF seems to be a bit of a holy grail.
Theres alive PDF to create a PDF file (http://alivepdf.bytearray.org/) from AS3 so maybe a halfway solution.
On the other hand theres things like pageflip (http://pageflip.hu/) as another possible halfway house (you could use a loader SWF to display the thumbs that loads the full books) though this would require recreating your pdfs docs to fit this.

I do so hope that someone can prove me wrong and give you a better answer, but I havent found it.

GMM
0
 
LVL 11

Assisted Solution

by:petiex
petiex earned 150 total points
ID: 34234841
If you want to convert your application to AIR, you could load the pdfs into mx:HTML objects:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/HTML.html

I think that the only flex equivalent for making PDFs appear to open in a flash application would be to use externalInterface to access some ajax code that shows the pdf on top of the flash app in an html iframe element.
0
 
LVL 1

Assisted Solution

by:PankajRai
PankajRai earned 150 total points
ID: 34245477
Hi Stoater,

What I understood is,  You want to add name of the file in data grid and when user click on these link it will open a pdf file as a  popup.

If I am right, you can display the name in the grid and on click on name you can display the pdf file as a popup in different browser.

Example:
  var url:String = http://....
 var urlRequest:URLRequest = new URLRequest(url);
 navigateToURL(urlRequest, "_parent");

0
 

Author Closing Comment

by:Stoater
ID: 34472487
Thanks, for all your intput guys, I think it is the holy grail, but these are all workable solutions.

Cheers.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now