FieldCure.DocumentParsers.Imaging 1.0.0

dotnet add package FieldCure.DocumentParsers.Imaging --version 1.0.0
                    
NuGet\Install-Package FieldCure.DocumentParsers.Imaging -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FieldCure.DocumentParsers.Imaging" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FieldCure.DocumentParsers.Imaging" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="FieldCure.DocumentParsers.Imaging" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FieldCure.DocumentParsers.Imaging --version 1.0.0
                    
#r "nuget: FieldCure.DocumentParsers.Imaging, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FieldCure.DocumentParsers.Imaging@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FieldCure.DocumentParsers.Imaging&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=FieldCure.DocumentParsers.Imaging&version=1.0.0
                    
Install as a Cake Tool

FieldCure.DocumentParsers.Imaging

PDF page image rendering — extension for FieldCure.DocumentParsers.

Core DocumentParsers v2.0 ships with pure-managed PDF text extraction (PdfPig). This package adds page image rendering via PDFtoImage (PDFium native) — useful for vision models, thumbnails, or feeding OCR engines.

Install

dotnet add package FieldCure.DocumentParsers.Imaging

Quick Start

using FieldCure.DocumentParsers;
using FieldCure.DocumentParsers.Imaging;

// Registers PdfImageRenderer, upgrading the factory's .pdf entry
// from text-only PdfParser to a full IMediaDocumentParser.
DocumentParserFactoryImagingExtensions.AddImagingSupport();

var parser = (IMediaDocumentParser)DocumentParserFactory.GetParser(".pdf")!;

// Text extraction (same pipeline as the core package — no regression).
var text = parser.ExtractText(File.ReadAllBytes("document.pdf"));

// Page rendering (new capability).
var images = parser.ExtractImages(File.ReadAllBytes("document.pdf"), dpi: 150);
foreach (var img in images)
    File.WriteAllBytes($"{img.Label}.png", img.Data);

Native Dependency

PDFium binaries are bundled via the PDFtoImage package (Windows/Linux/macOS). For pure managed deployments or environments where native PDFium cannot load, use the core FieldCure.DocumentParsers package directly — text extraction does not require this package.

License

MIT — Copyright (c) 2026 FieldCure Co., Ltd.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FieldCure.DocumentParsers.Imaging:

Package Downloads
FieldCure.DocumentParsers.Ocr

Tesseract OCR fallback for scanned PDFs on Windows. Plugs into FieldCure.DocumentParsers as an IDocumentParser for .pdf that renders pages with PDFium and recognizes text with Tesseract when PdfPig yields no content.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 250 4/20/2026

v1.0.0 — Initial release. Splits page image rendering out of the legacy FieldCure.DocumentParsers.Pdf package. `PdfImageRenderer : IMediaDocumentParser` renders PDF pages via PDFium (PDFtoImage); `ExtractText` delegates to the core `PdfParser` so registration is additive. Use `DocumentParserFactoryImagingExtensions.AddImagingSupport()`.