Can I use PDFNet with WPF?

Q: I was hoping to get in contact with someone to see if your product
( was supported C# WPF? And if so do you
have sample code of this?
A: You can use PDFNet SDK for .NET with WPF and C#. As a starting
point you may want to take a look at some of the provided samples
( For example, Xaml2PDF
is WPF specific sample showing how to convert WPF FlowDocuments (or
XAML) to PDF. In case you are interested in PDF viewing capability you
can use PDFVIewCtrl (
samplecode.html#PDFViewSimple) in WPF. The integration should be
fairly simple (please see

In case you would like to rasterize PDF page to a WPF bitmap you could
use a following utility (which converts System.Drawing.Bitmap to WPF

using (PDF.PDFDraw draw = new pdftron.PDF.PDFDraw()){
  using (System.Drawing.Bitmap gdiBitmap =
draw.GetBitmap(m_CurrentPdfPage)) {
    System.Drawing.Imaging.PixelFormat srcPixelFormat =
    WriteableBitmap wpfBitmap = new WriteableBitmap(gdiBitmap.Width,
gdiBitmap.Height, gdiBitmap.HorizontalResolution,

gdiBitmap.VerticalResolution, PixelFormats.Bgr24, null);
    System.Drawing.Imaging.BitmapData bitmapData =
System.Drawing.Rectangle(0, 0, gdiBitmap.Width, gdiBitmap.Height),

System.Drawing.Imaging.ImageLockMode.ReadOnly, srcPixelFormat);

  wpfBitmap.WritePixels(new Int32Rect(0, 0, gdiBitmap.Width,
gdiBitmap.Height), bitmapData.Scan0,
  return wpfBitmap;

A special WPF extension pack is in the works.