Example how to open a pdf document inside a WPF application keeping text formatting Sample pdf Sample Framework .NET Framework 4.7.2 ⚠️ Dependencies ⚠️ NuGet PdfToHtmlNet V1.1.2 Used classes MarkupConverter To use this classes is necessary to add the reference to PresentationFramework.dll, PresentationCore.dll and WindowsBase.dll