GdPicture.API
14.4.13
Prefix Reserved
dotnet add package GdPicture.API --version 14.4.13
NuGet\Install-Package GdPicture.API -Version 14.4.13
<PackageReference Include="GdPicture.API" Version="14.4.13" />
<PackageVersion Include="GdPicture.API" Version="14.4.13" />
<PackageReference Include="GdPicture.API" />
paket add GdPicture.API --version 14.4.13
#r "nuget: GdPicture.API, 14.4.13"
#:package GdPicture.API@14.4.13
#addin nuget:?package=GdPicture.API&version=14.4.13
#tool nuget:?package=GdPicture.API&version=14.4.13
GdPicture.API, part of the Nutrient .NET SDK
Intelligent PDF & document processing SDKs: from scanning to barcodes to OCR to conversion to robust PDF processing — if you can think of it, this library can probably do it.
Getting Started
Setting up the SDK
using GdPicture14;
LicenseManager licence = new LicenseManager();
licence.RegisterKEY(""); // Set a demo key
Converting a Word Document to a PDF
// After Setting up the SDK
using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
converter.LoadFromFile(@"input.docx");
converter.SaveAsPDF(@"output.pdf");
Converting an Image File into Searchable PDF (OCR)
Note: For using the OCR with GdPicture the optional nuget GdPicture.Resources is required.
Method 1: Saving intermediary output in a file
// After Setting up the SDK
using GdPicturePDF pdf = new GdPicturePDF();
using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
converter.LoadFromFile(@"input.png");
converter.SaveAsPDF(@"output_intermediary.pdf");
pdf.LoadFromFile(@"output_intermediary.pdf", true);
pdf.OcrPages("*", 0, "eng", "", "", 200);
pdf.SaveToFile(@"output_with_ocr.pdf");
Method 2: With a memory stream
// After Setting up the SDK
using GdPicturePDF pdf = new GdPicturePDF();
using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
converter.LoadFromFile(@"input.png");
using MemoryStream stream = new MemoryStream();
converter.SaveAsPDF(stream);
pdf.LoadFromStream(stream);
pdf.OcrPages("*", 0, "eng", "", "", 200);
pdf.SaveToFile(@"output_with_ocr.pdf");
If you would like to see more examples, please visit the code samples page in our guides.
Introduction
GdPicture.NET is a Nutrient SDK for OCR, data extraction, editing, converting, generating PDFs, barcodes, scanning, and much more. It offers developers a rich API for quickly adding PDF, imaging, and intelligent data processing capabilities to any .NET application. There are many code samples, and it comes supported by the amazing team at Nutrient.
- Low-Level APIs: For fine-grained control
- High Fidelity: Accurate, reliable document conversion and OCR
- Prebuilt Features: Convert, edit, sign, form fill, and more
System Compatibility
Deployment
GdPicture.NET assemblies are available for the following frameworks:
- .NET 8.0
- .NET Framework 4.6.2
Using different GdPicture.NET assemblies, you can deploy the application you build to various operating systems, as outlined in the table below.
| GdPicture.NET Assembly | Operating Systems Supported for Deployment |
|---|---|
| .NET 8.0 or newer | Linux* (x64, arm64), Microsoft Windows 10 (x64/x86) or newer, Microsoft Windows Server Core 2012 (x64) or newer, macOS 14 or newer (x64/ arm64) |
| .NET Framework 4.6.2 | Microsoft Windows Vista (x64/x86) or newer Microsoft Windows Server 2008 (x64/x86) or newer |
The .NET 8.0 assembly on Linux requires GLIBC 2.34 or newer (for example Amazon Linux 2023, Debian 12, Ubuntu 22.04).
Package Overview and Dependencies
GdPicture repository contains multiple packages designed to provide flexibility, scalability, and targeted functionality for various platforms and use cases. Below is an overview of each package and its role within the ecosystem:
Main package
- GdPicture.API: A cross-platform package that provides core API-level functionality. Serves as the foundation for all other GdPicture packages and can be used independently for document processing and manipulation tasks.
Optional package
- GdPicture.Resources: Resources for GdPicture required for OCR processing.
Alternative packages
- GdPicture: A Windows-only package that wraps GdPicture.API. Starting from 14.4, the WPF and WinForms viewers are available as separate packages: GdPicture.WPF and GdPicture.WinForms.
- DocuVieware: A standalone package offering a rich viewer and collaboration solution. Ideal for web-based projects that require advanced document viewing, annotation, and sharing capabilities.
- Nutrient.SDK: The other package of the Nutrient .NET SDK, recommended for new projects. It has a document-centric C# API and AI data extraction. Refer to the getting started guide to choose between the two.
- GdPicture.MAUI: A cross-platform package that extends GdPicture.API capabilities by adding GdViewer MAUI viewer component (Preview).
Supported File Types
GdPicture.NET library enables you to load, save, and convert numerous file types, and a full list of file types can be found here.
- PDF, PDF/A
- Microsoft Office: DOC, DOCM, DOCX, DOTX, PPT, PPTM, PPTX, PPSX, XLS, XLSM, XLSX
- CAD: DXF
- Image: AI, BMP, CUR, CUT, DDS, DIB, DICOM, EMF, EXIF, EXR, G3, GIF, HDR, HEIF/HEIC, ICO, IFF, J2K, J2C, JB2, JBIG2, JIF, JFIF, JNG, JP2, JPEG, JPG, JPE, KOA, LBM, MNG, PBM, PBM RAW, PCD, PCT, PICT, PIC, PCX, PFM, PGM, PGM RAW, PJPEG, PNG, PNM, PPM, PPM RAW, PSD, RAS, RAW, RLE, SGI, SVG, TGA, TARGA, TIFF, TIF, WBMP, WAP, WBM, WMF, WSQ, XBM, XPM
- RAW Camera Image: 3FR, ARW, BAY, BMQ, CAP, CINE, CR2, CR3, CRW, CS1, DC2, DCR, DRF, DSC, DNG, ERF, FFF, HDR, IA, IIQ, KC2, K25, KDC, MDC, MEF, MOS, MRW, NEF, NRW, ORF, PEF, PTX, PXN, QTK, RAF, RAW, RDC, RW2, RW1, RWZ, SR2, SRF, SRW, STI
- Web: HTM, HTML, MHT, MHTML
- Email: EML, MSG
- Text: ODT, RTF, TXT
- PostScript: PS (Currently, PostScript implementation is experimental.)
Key Features, Documentation & Support
Nutrient offers comprehensive guides and code samples to help you quickly integrate and customize your application. It comes with full technical support that includes direct access to the engineers who built the product. Whether you have questions getting started with our SDK, or you want to know how to best integrate new features into your app, we're here to help you find a solution.
Most popular guides:
- Load a file: Load PDF documents, images and about 100 different file formats. This is the first step in using the full potential of our library. Loading files to one of our custom classes allows you to perform different actions on those files. You can use different kind of sources, such as a local machine, a byte array, a stream object, or remote URLs.
- Conversion: Convert various formats — including Office documents, images, emails, and webpages — into high-quality PDFs. Seamlessly convert PDFs back to Office formats while preserving original styling and layout.
- OCR: Leverage advanced OCR technology for zonal, full-page, and template-based text recognition, enabling searchable PDF/A creation, automated document classification, and fast processing, including barcode and specialized data decoding.
- Editor: Programmatically edit PDFs, images, and other file formats in your application. Leverage an intuitive API to manipulate, merge, split, insert, and remove PDF pages in your workflows. Easily adjust images with more than 50 unique filters, including blur, sharpen, red-eye correction, sepia, smooth, and soften. Dynamically insert text and image watermarks to protect your confidential documents and images.
- Extraction: Harness our API to automatically extract key-value pairs, tables, and structured data.
- Barcodes: Automate the recognition and decoding of 1D, 2D, and postal barcodes (including QR, Micro QR, Data Matrix, PDF417, Aztec Code, MaxiCode, and USPS Intelligent Mail). Dynamically generate barcodes in vector or raster format for insertion into image or PDF files.
- PDF Generation: Leverage a lightning-fast PDF generation engine that can merge data with templates.
- TWAIN and WIA Scanning (Windows Specific Feature): Capture images from any scanner devices and digital cameras using our enterprise-grade TWAIN and WIA toolkit, and leverage high- and low-level APIs to customize the process.
- Hyper-compression: Dramatically reduce file sizes for various document types using our mixed raster content (MRC) compression engine, which calibrates specific settings to deliver high-fidelity outputs without noticeable data loss.
- PDF/A: Convert more than 100 file types into ISO-compliant, searchable PDF/A formats with full conformance support and veraPDF validation, ideal for automated workflows and high-volume processing.
API
Changelog
For a detailed list of the changes included in each version, refer to the changelog.
License
When you integrate GdPicture.NET into your application, a trial license is activated automatically, meaning there's no need for a license key. This trial license provides the following:
- Support: Access to technical support is included.
- Watermarking: A prominent watermark (text overlay) will appear on all documents.
- Trial Notifications: Regular reminders indicating that the product is in trial mode.
For a comprehensive evaluation, please contact our Sales team to request a demo license key. This demo license enables you to explore our product for a 60-day period without watermarks or trial notifications.
Copyright © Nutrient. All rights reserved.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BouncyCastle.Cryptography (>= 2.5.0)
- DocumentFormat.OpenXml (>= 3.2.0)
- GdPicture.runtimes.linux (= 14.4.13)
- GdPicture.runtimes.macos (= 14.4.13)
- GdPicture.runtimes.windows (= 14.4.13)
- Google.Protobuf (>= 3.33.2)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- OpenMcdf (>= 3.1.4)
- Pkcs11Interop (>= 5.2.0)
- protobuf-net (>= 3.2.56)
- RtfPipe (>= 2.0.7677.4303)
- System.IO.Packaging (>= 10.0.5)
- System.Security.Cryptography.Pkcs (>= 10.0.13)
- System.Windows.Extensions (>= 10.0.5)
-
net8.0
- BouncyCastle.Cryptography (>= 2.5.0)
- DocumentFormat.OpenXml (>= 3.2.0)
- GdPicture.runtimes.linux (= 14.4.13)
- GdPicture.runtimes.macos (= 14.4.13)
- GdPicture.runtimes.windows (= 14.4.13)
- Google.Protobuf (>= 3.33.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- OpenMcdf (>= 3.1.4)
- Pkcs11Interop (>= 5.2.0)
- protobuf-net (>= 3.2.56)
- RtfPipe (>= 2.0.7677.4303)
- System.IO.Packaging (>= 8.0.1)
- System.Security.Cryptography.Pkcs (>= 8.0.2)
- System.Windows.Extensions (>= 8.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on GdPicture.API:
| Package | Downloads |
|---|---|
|
DocuVieware.API
DocuVieware by Nutrient: HTML5 document viewer for ASP.NET Core. View, annotate, sign, redact, and scan documents in the browser. |
|
|
GdPicture.XtractFlow
XtractFlow for GdPicture.NET |
|
|
GdPicture.MAUI
MAUI PDF Viewer |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 14.4.13 | 66 | 11/27/2026 |
| 14.4.12 | 730 | 11/15/2026 |
| 14.4.11.1 | 2,066 | 10/26/2026 |
| 14.4.10 | 3,766 | 10/15/2026 |
| 14.4.9 | 21,567 | 9/18/2026 |
| 14.4.8.1 | 3,810 | 8/27/2026 |
| 14.4.8 | 1,488 | 8/21/2026 |
| 14.4.7 | 3,137 | 7/28/2026 |
| 14.4.6.1 | 1,025 | 7/18/2026 |
| 14.4.6 | 334 | 7/17/2026 |
| 14.4.5.1 | 2,453 | 6/29/2026 |
| 14.4.5 | 543 | 6/25/2026 |
| 14.4.4 | 1,661 | 6/12/2026 |
| 14.4.3 | 4,483 | 5/22/2026 |
| 14.4.2 | 5,555 | 5/6/2026 |
| 14.4.1 | 5,561 | 4/3/2026 |
| 14.4.0 | 970 | 3/26/2026 |
| 14.3.26 | 6,318 | 2/27/2026 |
| 14.3.25 | 625 | 2/20/2026 |
### 14.4.13
* API: Removes the undocumented ProcessMonitor class. Members that took one take a CancellationToken. (L#NAT-717)
* Fixes .NET Framework apps freezing on a blank message box when a GdPicture dependency fails to load. (L#GDPIC-1689)
#### Barcode
* Fixes accented text in QR codes being garbled by phone cameras: in the Undefined and BOM encoding modes it is now written as UTF-8 with an ECI header. Byte mode is unchanged. Each accented character now takes 2 bytes, so a QR code with a fixed version near its capacity may need a larger version. (L#GDBC-504)
* Fixes Code 128 barcodes not being read in best quality mode when their bars are very narrow for the scan resolution, such as small labels scanned at 200 dpi. (L#GDBC-482)
#### Imaging
* API: Adds CadSettings.DefaultUnits and CadSettings.ForcedUnits to choose the units of DWG and DXF drawings. (L#GDPIC-1306)
* API: Adds CadSettings.RenderedSpace to render a drawing's model space, paper space, or the one with more content. (GH#4083)
* API: Adds CadSettings.ShxFontFolders to set the folders of the SHX fonts that DWG and DXF drawings use. (GH#4083)
* Adds 3D rendering to DWG and DXF drawings: saved and perspective views, solids, surfaces, meshes, isolines, thickness. (GH#4083)
* Adds tables, multileaders, multilines, helixes, OLE objects, proxy graphics and clipped blocks to DWG and DXF drawings. (GH#4083)
* Adds placeholders for missing images, underlays and external references in DWG and DXF drawings. (GH#4083)
* Improves the rendering of DWG and DXF drawings significantly, making it far more faithful to their content. (GH#4083)
* Improves line types in DWG and DXF drawings: dash placement, shapes and texts in lines, widths and line weights. (GH#4083)
* Improves text in DWG and DXF drawings: SHX fonts, fallback fonts for missing ones, and multiline text layout. (GH#4083)
* Fixes colors, blocks and extents rendered inaccurately in DWG and DXF drawings. (GH#4083)
* Fixes a crash when loading a PNM, TIFF or other raster image that declares an extremely large width. (L#SECFIX-79)
* Fixes a crash when loading GIF images with empty frames or invalid compressed image data. (GH#4273)
* Fixes DWG and DXF drawings with a few corrupted coordinates that rendered as an almost empty page. (L#GDPIC-1132)
* Fixes DWG and DXF drawings with long periodic splines that took minutes to open. (L#GDPIC-689)
* Fixes DWG conversion failing on drawings whose tables have cells with block attributes. (GH#4083)
* Fixes memory errors and crashes when loading malformed TGA images, and uninitialized pixels in truncated ones. (L#SECFIX-81, L#SECFIX-151)
* Fixes memory errors and wrong pixels when loading TIFF images with extra samples or missing tags. (L#SECFIX-94)
* Fixes MRC compression blurring text in shaded table cells. (L#MRC-428)
* Fixes MRC compression producing different output for the same image from one run to the next. (L#MRC-429)
* Fixes the page size of DWG and DXF drawings: they are sized in the units their INSUNITS variable states, feet or meters among them, paper space layouts in their page setup's paper units, and DWG files in the measurement system they store. (L#GDPIC-1306)
* Fixes truncated uncompressed TGA images loading uninitialized memory instead of black pixels. (L#SECFIX-163)
#### OCR
* Fixes a crash that ended the process when running accuracy-focused OCR on some scanned pages. (L#OCR-1117)
* Fixes OCR table export to XLSX failing when each table is saved to its own sheet. (GH#4315)
* Fixes page orientation detection turning upright pages with thin or faint text upside down. (L#GDPIC-1591)
#### Office
* Improves DocProcessor error details for Word packages with incorrectly named main document parts. (L#MAMBO-2206)
* Improves the speed of loading spreadsheets: large XLSX files that could take minutes, or seemed to never finish, now load in seconds, and XLS and XLSX conversion is faster overall. (L#MAMBO-2124)
* Fixes conversion of PowerPoint tables with invalid cell alignment values. (L#MAMBO-2205)
* Fixes converted Office documents containing uninitialized memory when an embedded image's declared size is wrong. (L#SECFIX-151)
* Fixes emoji that Word stores as symbols missing from converted Word documents. (GH#4203)
* Fixes Excel numbers too wide for their column being cut short when converted to PDF, so that 172291.68 printed as 172291.6: General numbers are now rounded to fit, or switched to scientific notation, and other number formats, dates and times print as ##### as in Excel, also in wrapped-text cells. Cells set to shrink to fit are now drawn in a smaller font instead of overflowing or being cut. Numbers whose format puts a locale tag before General, such as [$-1010409]General, now show their value instead of the word General. (L#MAMBO-2188)
* Fixes ink on PowerPoint slides missing from converted documents. (GH#4203)
* Fixes line numbers in Word documents converted to PDF when a paragraph kept with the next one moves to the next page. (L#MAMBO-2158)
* Fixes long category labels of charts in PowerPoint, Excel and Word documents being rotated and drawn over the chart in the PDF. Labels now wrap inside their category under the axis, as Office draws them. Also fixes chart text with paragraph margins or indentation being drawn far from its place. (L#MAMBO-1967)
* Fixes Office documents failing to convert with InvalidDocument when an attribute holds a value the format does not define, such as an unknown table width type, line end type or chart grouping: anywhere in Word documents, and in shapes and charts in PowerPoint and Excel documents. (L#MAMBO-2219)
* Fixes opening and converting ODT files with a bookmark that starts in a heading and ends in a paragraph, or with bookmarks that have missing or duplicate names. (L#MAMBO-2207)
* Fixes PDF to DOCX conversion so ruled tables become Word tables and right-to-left lines keep their position. (L#PDFOF-199, L#MAMBO-2097, L#MAMBO-2098, L#MAMBO-2099)
* Fixes PowerPoint presentations failing to convert with GenericError when the content types of their comment parts are missing or wrong. (L#MAMBO-2189)
* Fixes trailing spaces in Word and PowerPoint text drawing underlines (a dot on a blank line) or moving centered lines, justified lines with tabs stretching the wrong spaces, and lost or duplicated text beside drop caps and frames across pages. (L#MAMBO-2171)
* Fixes waterfall and other newer chart types missing from converted PowerPoint and Word documents. (L#WEB-5333)
* Fixes Word documents converted to PDF separating a keep-with-next paragraph from the table that follows it. (L#MAMBO-2157)
* Fixes Word documents failing to convert to PDF when a comment has an empty or missing author. Such comments now convert like any other, with an empty author name. (L#MAMBO-2211)
* Fixes Word documents failing to convert when an ink object has no ink data. (GH#4203)
* Fixes Word documents failing to convert with InvalidDocument when a line break has a type the format does not define, such as "line". (L#MAMBO-2208)
* Fixes Word documents laid out with the wrong spacing and indents: a custom style named like a built-in one in a .doc file, and paragraphs that remove their numbering. (L#MAMBO-2201)
* Fixes Word documents losing the content of embedded .docx alt chunks when converted to PDF. (L#MAMBO-2185)
* Fixes Word documents whose footer reserves the top of the page with a frame or shape: the body text and floating tables that must not overlap now start below it, as in Microsoft Word. (L#MAMBO-1945)
* Fixes Word, Excel and PowerPoint files failing to load with UnsupportedFormat or InvalidDocument when their [Content_Types].xml binds the content-types namespace to a prefix. (L#MAMBO-2214)
* Fixes XLSX to PDF conversion never finishing when sheet headers and footers are rendered and a header or footer repeats a section code (&L&L), and prints && as an ampersand in headers and footers. (L#MAMBO-2117)
#### PDF
* Improves word boundary detection in PDF text extraction for tightly justified and letter-spaced text. (L#NAVI-163)
* Fixes PDF files failing to load with GenericError when leftover data after the end of the file ends with a startxref keyword that has no offset. (L#GDPDF-1538)
* Fixes PDF text extraction joining words in justified text written with character spacing and no space characters. (L#XT-598)
* Fixes PDF-to-PDF export by writing the document as it is, which keeps bookmarks, links and page structure. (L#NAPY-25)
* Fixes spaces inserted inside words when extracting text from PDFs that tighten character spacing, such as macOS-generated files. (L#NAVI-162)
* Fixes text extraction reading every math italic letter of a Word equation as the same letter. (GH#4180)
#### Viewers
* Fixes a crash in the WPF GdViewer when zooming to an area, or using ZoomRect, while the viewer runs on a UI thread other than the application main thread. Area zooming on vector documents such as PDF now also zooms to the selected area when display scaling is not 100%. (L#GDPIC-1294)