What is GemBox.Pdf?
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.
GemBox.Pdf Features
- Convert PDF files to image (PNG, JPEG, GIF, BMP, TIFF, and WMP) and XML Paper Specification (XPS) formats.
- View PDF files in WPF applications.
- Print PDF files.
- Merge PDF files.
- Split PDF files.
- Create, fill in, flatten, read, and export PDF interactive forms.
- Extract a Unicode representation of a PDF page and individual text elements with their bounds and font.
- Extract images from PDF files.
- 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.
- Read, write and update PDF files.
- Get, create or edit bookmarks (outlines).
- Get and set document properties.
- Add watermark, header and footer to PDF pages.
- Get and set viewer preferences.
- Get, create, remove or reorder pages.
- Add text, images, shapes (paths), form XObjects, content groups, 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.
Get Started
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.
Resources
| |