Skip to content

Build a simple PDF viewer application using XFINIUM.PDF.View controls for Windows Forms

  1. Install the XFINIUM.PDF.View controls in Visual Studio toolbox

  2. Create a new Windows Forms application and open the main form in the Windows Forms designer.

  3. Drag a PdfDocumentView control and a PdfVisualDocument component onto the form.

  4. Set the Document property of the PdfDocumentView control to the PdfVisualDocument object added on the form.

  5. In form's Load event add the following code:

  6. Run the application.

A more complex sample showing all the features of XFINIUM.PDF.View controls is available on GitHub:
https://github.com/XFINIUM-Software/xfinium.pdf/tree/main/Reference/PlatformSpecific/WinForms

The XFINIUM.PDF.View suite of controls is included in the XFINIUM.PDF Viewer Editions.