GemBox.Pdf is a .NET component that enables you to read, write, edit, and print PDF files from .NET applications.
With GemBox.Pdf you get a fast and reliable component that’s easy to use and doesn't depend on Adobe Acrobat. It requires only .NET so you can deploy your applications without having to think about other licenses.
- Read, write, and update PDF files.
- Convert PDF files to image (PNG, JPEG, GIF, BMP, TIFF, and WMP) and XML Paper Specification (XPS) formats.
- View PDF files in Azure Functions, Blazor, ASP.NET Core, MAUI, and WPF applications.
- Process PDF files on Windows, Linux, macOS, Android, and iOS operating systems.
- Extract text from PDF files.
- Extract images from PDF files.
- Redact content from PDF files.
- Print PDF files.
- Merge PDF files.
- Split PDF files.
- Create, fill in, flatten, read, and export PDF interactive forms.
- Extract text from images or scanned PDF files with optical character recognition (OCR).
- Encrypt and digitally sign PDF files.
- Clone or import pages between PDF documents.
- Get, create, or edit bookmarks (outlines).
- Get and set document properties.
- Get and set viewer preferences.
- Add watermark, header and footer to PDF pages.
- Get, create, remove, or reorder pages.
- Add text and marked content to pages and format (fill, stroke, and clip) the content.
- Annotate PDF pages with hyperlinks.
- Use basic PDF objects for currently unsupported PDF features.
- Specify fonts location.
- Medium trust support.
You are not sure how to start working with PDF documents in .NET using GemBox.Pdf? Check the code below that shows how to create a PDF file from scratch and write 'Hello World!' on it.
// If using Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
// Create a new PDF document.
using (var document = new PdfDocument())
{
// Add a page.
var page = document.Pages.Add();
using (var formattedText = new PdfFormattedText())
{
// Add text.
formattedText.AppendLine("Hello World");
// Draw text to the page.
page.Content.DrawText(formattedText, new PdfPoint(100, 700));
}
// Save the document as PDF file.
document.Save("Writing.pdf");
}
For more GemBox.Pdf code examples and demos, please visit our examples page.
You can download GemBox.Pdf from NuGet 📦 or from Downloads 🛠️.