Getting started with XFINIUM.PDF Viewer in UWP applications

This tutorial will show how to get started with XFINIUM.PDF Viewer in UWP Windows 10 applications.

1. Open your page xaml in Visual Studio Designer.

Getting started with XFINIUM.PDF viewer in UWP applications

2. Drag a PdfDocumentView control from the toolbox onto the page and name the control ‘documentView‘. A reference to XFINIUM.PDF Viewer for UWP SDK will be added automatically to your project.

3. Add a test PDF file to your project and set its build action to EmbeddedResource.

4. In your page’s Loaded event create a PdfVisualDocument object, set the documentView.Document property with the PdfVisualDocument object and load a file in the document.

C#

VB

5. Run the application.

2 thoughts on “Getting started with XFINIUM.PDF Viewer in UWP applications”

  1. I tried out the trial version 8.0.0, but I can’t get this to work in a Xamarin.UWP App – it works for Mac, iOS and Android, but not in Xamarin.UWP. It’s throwing a Runtime exception in Xfinium.PDF.View failing to find System.Runtime.WindowsRuntime on startup – any hints?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.