Skip to content

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

  1. Install the PDF4NET.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 PDF4NET.View controls is available on GitHub:
https://github.com/pdf4dev-solutions/pdf4net/tree/master/Reference/View/WinForms

The PDF4NET.View suite of controls is included in the PDF4NET+Render licenses.