views:

3399

answers:

5

I'm looking for code or a good control to preview PDFs and PPTs with Silverlight or Flash. It would be great if it has nice page-curl functionality.

We want our customers to be able to have a look at their reports in a spiffy way.

A: 

Flash can only display Jpg images, therefore will need to convert each page of the PDF or PPT to a jpg file, then import these into a flash page turner component.

PDF files can be rasterized or converted to jpg using GhostScript.

PPT files could be printed to PostScript(PS) through Office automation or other library, The PS can then also be converted to jpg using GhostScript.

I have done this in Flash and would assume the same applies for Silverlight.

This is what is required at a low level.

Mark Redman
the best approach is to convert the PDF into an SWF on the server, because it's more performant, probably smaller and preserves resolution independent data ... most simple thing would probably be pdf2swf from swftools (http://www.swftools.org/) ...
back2dos
Does the pdf to swf convert the text to selectable text within the swf?
Mark Redman
+2  A: 

Some ideas for Silverlight display:

Jon Galloway
A: 

it's funny why there is no any good free library to do such things?! office- and PDF docs exist for so many years and used by everyone

Josh
A: 

I´ll checked the conaito Powerlight SDK. Its very great! They offer a SDK which provide a easy to develop Powerpoint to Silverlight converting solution for websites or own desktop application! Powerlight SDK: http://www.conaito.com/powerlight-powerpoint-xps-silverlight-converter-sdk.asp

delaire
A: 

You can use SilverDox viewer from PDFTron: http:// www.pdftron.com/silverdox/

The Silverlight viewing control is free and can be used view PDF, XPS, MS Office and other formats processed using SilverDox publisher.

Ivan