PDF Viewer control for WPF and Silverlight

Q: We have a WPF application that we are needing to view PDF files and
be able to control the toolbar so we can provide our own printing,
email, save, etc. code. Do any of your .Net/Silverlight controls
allow for viewing existing PDF documents? If it does, will you direct
us to the correct version to trial and some sample code on how to
accomplish this?

The PDF viewer that we’ve been working with so far is a Windows Form
viewer (http://www.pdftron.com/pdfnet/samplecode/data/
WPF_PDFViewer.zip) that we have been hosting in WPF. If there is a
specific WPF control I would be much more intrested in this package.

A: We are in the process of wrapping up the WPF version of PDFNet. An
unofficial preview is available using the following links:

32-bit: http://www.pdftron.com/IDR49Z9-B31B/PDFNetDotNet4.zip
64-bit: http://www.pdftron.com/IDR49Z9-B31B/PDFNet64DotNet4.zip

The relevant sample project is located under PDFNet/Samples/

Besides WFP PDF Viewer the new version will also include extra WPF
specific methods such as:

  • pdftron.PDF.PDFDraw.GetBitmap() →

  • pdftron.PDF.Image.Create(System.Windows.Media.Imaging.BitmapSource)

  • built-in conversion from Xaml to PDF


To view PDF in Silverlight use SilverDox (http://www.pdftron.com/