I've used the iFrame solution and it works surprisingly well. Basically you have to modify the html template to include with the required javascript functions and then you use the IFrame mxml component to display the PDF. I just generate the PDF on the serverside (using iText) and then display the results in the iFrame. It works great in both IE and Firefox. The only problem I've come across is that when I do not have enough information to generate a PDF, I send back an HTML page with an error and sometimes that HTML page does not show up correctly in Firefox. However, it could be something I'm just doing wrong so I would say to give it is a shot since the PDF displays correctly in both IE and Firefox.
-Bill --- In [EMAIL PROTECTED], Kevin <[EMAIL PROTECTED]> wrote: > > I know this has been asked before, but I haven't seen many solutions > posted. > > Is there a way to preview a PDF in Flex? As far as I can tell there > are two possible options: > > 1) Preview the PDF in an iFrame (Has anyone tried this? Does it work > cross platform?) > > 2) Convert the PDF to SWF & load in Flex. (Is there existing server > code for this conversion? This seems rather processor intensive for > large PDF's) > > I am still struggling with printable document creation using Flex. > Has anyone heard whether Adobe is interested in building a basic > Print Preview Component (similar to the Acrobat Reader Plugin) for > Flex? Seems like this would be a valuable asset to the Flex community. > > - Kevin >

