Free version
Download
To install GemBox.Pdf Free, add the NuGet package to your project, or download setup and open the .msi file.
Install NuGet packageDownload Windows setup
Limitations
GemBox.Pdf Free delivers the same performance and set of features as the Professional version. However, the Free version is limited to two pages. This limitation is enforced during reading or writing files.
The ComponentInfo.FreeLimitReached event allows you to control what happens when your application reaches the free version limit. You can use this event to stop further reading/writing.
First steps
Using the GemBox.Pdf component is easy and straightforward. After referencing GemBox.Pdf.dll from your project, you can use the following code snippet to generate a simple PDF file:
C# code
static void Main() { // Set license key to use GemBox.Pdf in Free mode. ComponentInfo.SetLicense("FREE-LIMITED-KEY"); // Create a new PDF document. using (var document = new PdfDocument()) { // Add a page. var page = document.Pages.Add(); // Write a text. using (var formattedText = new PdfFormattedText()) { formattedText.Append("Hello World!"); page.Content.DrawText(formattedText, new PdfPoint(100, 700)); } // Save the PDF document as a PDF file. document.Save("Document.pdf"); } }
Visual Basic .NET code
Sub Main() ' Set license key to use GemBox.Pdf in Free mode. ComponentInfo.SetLicense("FREE-LIMITED-KEY") ' Create a new PDF document. Using document = New PdfDocument() ' Add a page. Dim page = document.Pages.Add() ' Write a text. Using formattedText = New PdfFormattedText() formattedText.Append("Hello World!") page.Content.DrawText(formattedText, New PdfPoint(100, 700)) End Using ' Save the PDF document as a PDF file. document.Save("Document.pdf") End Using End Sub
Usage
You can use GemBox.Pdf Free for any purpose, including use in commercial applications.
GemBox is under no obligation to provide technical or any other support to the users of the free version.