Can I use PDFNet with WPF?

Q: I was hoping to get in contact with someone to see if your product
(http://www.pdftron.com/pdfnet) 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
(http://www.pdftron.com/pdfnet/samplecode.html). 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 (http://www.pdftron.com/pdfnet/
samplecode.html#PDFViewSimple) in WPF. The integration should be
fairly simple (please see
http://www.codegod.de/webappcodegod/Integration-of-WinForms-in-WPF-Applications-AID405.aspx
or http://www.codeproject.com/Articles/37360/Winforms-WPF-Interop.aspx).

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
Bitmap):

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

gdiBitmap.VerticalResolution, PixelFormats.Bgr24, null);
    System.Drawing.Imaging.BitmapData bitmapData =
                     gdiBitmap.LockBits(new
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,
  gdiBitmap.UnlockBits(bitmapData);
  return wpfBitmap;
}

A special WPF extension pack is in the works.