Did you look at the Adobe Share APIs:
http://labs.adobe.com/wiki/index.php/Share:API . You should be able to
upload a PDF and get a SWF preview back.
-David
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Decoursey
Sent: Tuesday, November 06, 2007 2:37 PM
To: [email protected]
Subject: Re: [flexcoders] PDF rendering in Flex
I think that is probably your best bet at this point. It is
possible to read a PDF in flex, but rendering it is a bit tricky. First
if it's compressed you'll have to unzip parts of it. Once you have it
decoded you could execute the drawing commands on a UIComponent and
display the text roughly the same, but I'm not sure about images. If
they are JPEG I suppose you could feed it to a SWFLoader, but if it's
Tiff, I don't think you can do that. But if you know that the PDF is
not going to have images or just simple images and you keep them simple
then I think it could be possible to build the component to display it.
Paul
On Nov 6, 2007, at 1:30 PM, Nick Collins wrote:
perhaps if you had a library on the backend that could
convert that PDF into a series of PNGs that you could then load into Ely
Greenfield's flexbook component?
On 11/6/07, frank_sommers <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
Hi,
I'm wondering if there is a way to render PDF
inside a Flex component. I'm familiar with AIR
and its ability to open PDF files using the
platform's Acrobat Reader plugin, but what I'm
looking for is a more light-weight approach
where the PDF would be rendered by Flex itself.
I've also been looking at AlivePDF, the new Flex
PDF library, but I didn't find a rendering
component in that API.
Thanks for any suggestions,
-- Frank