GemBox.Pdf.Ocr is a utility component for GemBox.Pdf that enables developers to read text from an image.
$ dotnet add package GemBox.Pdf.OcrGemBox.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.
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.
CLI coding agents such as GitHub Copilot, Claude Code, and OpenAI Codex can write valid GemBox code when enabled with our gembox-skill.