I saw this: https://github.com/empira/PDFsharp-samples/blob/master/samples/gdi/GraphicsPreview/PreviewForm.cs But I need for wpf mvvm version. Does pdfsharp support this? Please help