RasterEdge PDF Document Viewer SDK for .NET Windows Forms is designed to display, manipulate and print PDF document in a Windows Forms application by C# programming code. Using this C#.NET Windows Forms PDF document viewer library SDK, you can easily load PDF document from local files or steams and view it in created document viewer.

After loading the target PDF document file, you are also allowed to navigate to any page of source PDF document file, highlight & mark PDF document with rich annotation objects, zoom PDF document page, view PDF file in different display formats, and save source PDF file using C# code within a .NET Windows Forms application. This PDF document viewer control SDK for C#.NET Windows Forms application can be delivered as an independent toolkit, which can perform fully-featured PDF document viewing and manipulating without using other external third-party software.

On this page, besides brief introduction to RasterEdge C#.NET PDF document viewer & reader for Windows Forms application, you can also see the following aspects.

In this section, we offer detailed guidance for you to create and add a PDF document viewer & reader in Windows Forms application using C# code. What should be noted here is that the following C# Windows Forms project test is running in Visual Studio 2005. Besides, please make sure you have installed .NET Framework 2.0 or above versions before using this C# Windows Forms PDF document viewer control.

Set up a Visual C# WinForms Project

The first step is to create a C#.NET Windows Forms project with the name of WinViewerDemo. If you still have one, omit this step;

Next is to add RasterEdge.Imaging.WinformsControl.DocumentViewer.dll control to your Visual C#.NET project. Right-click on the "Toolbox", select "Choose Items...", and browse to locate and select "RasterEdge.Imaging.WinformsControl.DocumentViewer.dll";

Then, you will see .NET WinViewer DLL Control in VS Toolbox.

Open a PDF Document in C#.NET WinForms Viewer

After adding WinViewer DLL into Visual Studio Toolbox, you can directly drag and drop the control on your C#.NET WinForms application form (Here, we take a blank form as an example);

Now, with simple C#.NET code, you can easily open a file dialog and load your PDF document in WinViewer control (see sample code below);

Please note that, there will be a pop-up window "cannot open your file" if your loaded file is not supported by our .NET WinForms Document Viewer Control.

Draw an Annotation on PDF Page in C#.NET WinForms Viewer

It is easy to draw and add an annotation on PDF file page in C#.NET Windows Forms Viewer by directly call a single method for your desired annotation that you want to support in your toolbar button's Onclick events. Please see Visual C# demo code below.

Moreover, C# programmers are able to resize, burn, delete and move created PDF annotation in WinForms Viewer control. Of course, it's necessary for you to add some buttons to complete these operations. In general, there's option to burn or delete PDF annotation when right-clicking on the created PDF annotation. If you right-click on the thumbnail, there is the option to "Add new page" or "delete page".

RasterEdge.com is professional provider of document, content and imaging solutions,
available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated
to provide powerful & profession imaging controls,
PDF document,
image to pdf files and components for capturing,
viewing, processing, converting, compressing and stroing images, documents and more.