Silverlight 4.0 PDF Viewer [closed]

2020-02-25 07:56发布

问题:


Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 5 years ago.

Any free control to view PDF for Silverlight?

or how to view pdf in silverlight from memory stream?

回答1:

Try this question: Previewing PDF and PowerPoint files with Silverlight/Flash

Other maybe useful links: http://forums.silverlight.net/forums/p/23986/85909.aspx#85909

http://www.siberix.com/reporting.html#pdf-sparkle - Costs money though!

http://forums.silverlight.net/forums/t/70573.aspx

You could use this to edit/print to pdf

Try codeplex: http://silverlightpdf.codeplex.com/

Works with Silverlight 3 not used it with Silverlight 4 beta yet.



回答2:

One easy way is that you can just use HTML brush to embeded the PDF.

OR you may try http://silverpdf.codeplex.com/.



回答3:

I found a solution by using an iframe and HTMLPage.

 <iframe id="mediaContainer" style="position:absolute"/>

place this iframe in .aspx

and then call your mediacontainer then set its properties.

System.Windows.Browser.HtmlElement myFrame = System.Windows.Browser.HtmlPage.Document.GetElementById("mediaContainer");


回答4:

www.netpdftools.com - SL library for viewing PDFs and extracting/searching text



回答5:

One option is to convert the PDF pages to PNG using ImageMagick or GhostScript.

It isn't free, but our Silverlight controls can do this on the fly for you using our own PDF Rasterizer.

(Disclaimer: I work here)

http://atalasoft.com/products/dotimage/silverlight