Free and Professional PDF library in C# and VB.NET

GemBox.Pdf is a .NET library for processing PDF files that has three working modes:

Every working mode uses the same GemBox.Pdf.dll file and delivers the same performance and set of features, but has some restrictions (except for the Professional mode).

Before using any other member of GemBox.Pdf library from your C# or VB.NET application, you must call a ComponentInfo.SetLicense method to set the working mode.

Free Pdf library

The default behavior of the Free mode is that a FreeLimitReachedException is thrown when loading or saving a PDF file with more than 2 pages.

You can change this behavior to achieve the trimming of PDF content to the first 2 pages by handling a ComponentInfo.FreeLimitReached event and setting FreeLimitEventArgs.FreeLimitReachedAction to Stop.

You can use the Free mode for any purpose, including use in commercial applications.

// Set license key to use GemBox.Pdf in a Free mode.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");

// Stop reading/writing a PDF when the free limit is reached.
ComponentInfo.FreeLimitReached += (sender, e) => e.FreeLimitReachedAction = FreeLimitReachedAction.Stop;
' Set license key to use GemBox.Pdf in a Free mode.
ComponentInfo.SetLicense("FREE-LIMITED-KEY")

' Stop reading/writing a PDF when the free limit is reached.
AddHandler ComponentInfo.FreeLimitReached, Sub(sender, e) e.FreeLimitReachedAction = FreeLimitReachedAction.Stop

Time Limited Pdf library

You can use the Time Limited mode to evaluate beyond the first 2 pages.

To set the Time Limited mode, you need to use a temporary or time-limited key, which you can get by contacting us.

The limitation of Time Limited mode is that it can be used only for 30 days.

// Set license key to use GemBox.Pdf in a Time Limited mode.
ComponentInfo.SetLicense("XX−<START DATE>−<END DATE>-XXXXXXXXXX");
' Set license key to use GemBox.Pdf in a Time Limited mode.
ComponentInfo.SetLicense("XX−<START DATE>−<END DATE>-XXXXXXXXXX")

Professional Pdf library

To set the Professional mode, you need to use a professional key which you can get by purchasing a license.

The Professional mode has no limitations, and the professional keys are perpetual (can be used forever).

// Set license key to use GemBox.Pdf in a Professional mode.
ComponentInfo.SetLicense("XXXXXXXXXX");
' Set license key to use GemBox.Pdf in a Professional mode.
ComponentInfo.SetLicense("XXXXXXXXXX")

Want more?

GitHub

Check the next example or select an example from the menu. You can also download our examples from the GitHub.


Like it?

Download Buy

If you want to try the GemBox.Pdf yourself, you can download the free version. It delivers the same performance and set of features as the professional version, but with some operations limited. To remove the limitation, you need to purchase a license.