Re: [flexcoders] PDF rendering in Flex

2007-11-06 Thread Nick Collins
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] 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

  



Re: [flexcoders] PDF rendering in Flex

2007-11-06 Thread Paul Decoursey
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] 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








RE: [flexcoders] PDF rendering in Flex

2007-11-06 Thread David Mendels
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: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Decoursey
Sent: Tuesday, November 06, 2007 2:37 PM
To: flexcoders@yahoogroups.com
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











 



Re: [flexcoders] PDF rendering in Flex

2007-11-06 Thread Richard Rodseth
The Share suggestion is an interesting one, but I think lots of us are
looking forward to the day when there is client-side rendering from
ActionScript baked into the run-time, or an Adobe-supported extension.
Ironically, I think the client-side PDF rendering options are greater
in the .NET world.

I understand that unifying the PDF and Flash runtimes is a multi-year effort.

On 11/6/07, David Mendels [EMAIL PROTECTED] wrote:


 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