GemBox.PDF V1.3 Build 13.0.0.1067
Click Here >> https://urlgoal.com/2tvW37
```html
GemBox.PDF V1.3 Build 13.0.0.1067: A Powerful .NET Component for PDF Files
GemBox.PDF is a .NET component that enables you to create, read, write, edit, and print PDF files from .NET applications. You can also merge, split, sign, clone, and convert PDF files and manipulate low-level objects from .NET applications simply and efficiently[^1^].
The latest version of GemBox.PDF, V1.3 Build 13.0.0.1067, introduces several new features and improvements, such as:
Support for optical character recognition (OCR), which allows you to extract text from images or scanned PDF files[^1^].
Support for XML Paper Specification (XPS) format, which allows you to convert PDF files to XPS and vice versa[^1^].
Support for WPF applications, which allows you to view PDF files in WPF controls[^1^].
Improved performance and memory usage for reading and writing large PDF files.
Improved security and digital signature features.
Improved content manipulation and annotation features.
Various bug fixes and enhancements.
If you are looking for a fast, reliable, and easy-to-use .NET component for processing PDF files, GemBox.PDF is the perfect choice for you. You can download the free version of GemBox.PDF from here, which is limited to two pages[^3^]. For the professional version, which comes with 12 months of free bug fixes, new releases, and technical support, you can purchase a developer license from here. You can also try GemBox.PDF online with our examples or visit our support center for any questions or feedback.
```
```html
In this article, we will show you how to use some of the new features of GemBox.PDF V1.3 Build 13.0.0.1067 with C# code examples.
Using OCR Feature
The OCR feature of GemBox.Pdf allows you to extract text from images or scanned PDF files. You can use the PdfDocument.Load method with the PdfLoadOptions.OcrMode property to enable OCR when loading a PDF file. You can also specify the language and the engine for OCR using the PdfLoadOptions.OcrLanguage and PdfLoadOptions.OcrEngine properties. The OCR engine can be either OcrEngine.Tesseract, which uses the open-source Tesseract library, or OcrEngine.Windows, which uses the Windows OCR API. The following example shows how to load a scanned PDF file and extract its text using the Tesseract engine and the English language:
using System;
using System.IO;
using GemBox.Pdf;
using GemBox.Pdf.Content;
using GemBox.Pdf.Ocr;
class Program
{
static void Main()
{
// If using Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
// Load a scanned PDF file with OCR enabled.
var loadOptions = new PdfLoadOptions()
{
OcrMode = OcrMode.Enabled,
OcrEngine = OcrEngine.Tesseract,
OcrLanguage = "eng"
};
var document = PdfDocument.Load("Scanned.pdf", loadOptions);
// Extract text from each page.
foreach (var page in document.Pages)
{
var text = page.Content.ToString();
Console.WriteLine(text);
}
}
}
You can also use the PdfPage.SaveImage method with the PdfSaveImageOptions.OcrMode property to enable OCR when saving a PDF page as an image file. The following example shows how to save a PDF page as a PNG file and extract its text using the Windows engine and the French language:
using System;
using System.IO;
using GemBox.Pdf;
using GemBox.Pdf.Content;
using GemBox.Pdf.Ocr;
class Program
{
static void Main()
{
// If using Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
// Load a PDF file.
var document = PdfDocument.Load("Document.pdf");
// Get the first page.
var page = document.Pages[0];
// Save the page as a PNG file with OCR enabled.
var saveOptions = new PdfSaveImageOptions()
{
OcrMode = OcrMode.Enabled,
OcrEngine = OcrEngine.Windows,
OcrLanguage = "fra"
};
page.SaveImage("Page.png", saveOptions);
// Extract text from the image file.
var text = File.ReadAllText("Page.png.txt");
Console.WriteLine(text);
}
}
Merging PDF Files with Different Page Sizes
GemBox.Pdf allows you to merge PDF files with different page sizes and orientations. You can use the PdfDocument.Pages.Clone method to clone or import pages from another PDF document. The cloned pages will retain their original size and orientation in the destination document. The following example shows how to merge two PDF files with different page sizes:
using System;
using System.IO;
using GemBox.Pdf;
class Program
{
static void Main()
{
// If using Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
// Load the first PDF file.
var document1 = PdfDocument.Load("File1.pdf");
// Load the second PDF file.
var document2 = PdfDocument.Load("File2.pdf");
// Clone all pages from the second document to the first document.
document1.Pages.Clone(document2.Pages);
// Save the merged document.
document1.Save("Merged.pdf");
}
}
Converting PDF Files to XPS Format
XPS (XML Paper Specification) is a fixed-layout document format that supports vector graphics, fonts, images, and annotations. XPS aa16f39245