LifeOS.Pdf.Barcode.Scanning 1.1.0

dotnet add package LifeOS.Pdf.Barcode.Scanning --version 1.1.0
                    
NuGet\Install-Package LifeOS.Pdf.Barcode.Scanning -Version 1.1.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="LifeOS.Pdf.Barcode.Scanning" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LifeOS.Pdf.Barcode.Scanning" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="LifeOS.Pdf.Barcode.Scanning" />
                    
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 LifeOS.Pdf.Barcode.Scanning --version 1.1.0
                    
#r "nuget: LifeOS.Pdf.Barcode.Scanning, 1.1.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 LifeOS.Pdf.Barcode.Scanning@1.1.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=LifeOS.Pdf.Barcode.Scanning&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=LifeOS.Pdf.Barcode.Scanning&version=1.1.0
                    
Install as a Cake Tool

LifeOS.Pdf

An open-source PDF library for .NET, written from scratch in C#. The core package has no dependencies and runs on .NET Standard 2.0 and .NET 5, 6, 7, 8, 9 and 10 (and .NET Framework 4.6.1+ through netstandard2.0). The optional companion packages (digital signatures, rendering, barcode scanning, OCR) are published separately and may use native libraries.

In development, every generated file is validated with qpdf, pypdf and PDFium (the engine behind Chrome's PDF viewer), and embedded fonts with fontTools and OTS (the font sanitizer used by Chrome and Firefox), so output opens in Chrome, Edge, Firefox, Adobe Acrobat and other PDF readers.

<p align="center"> <img src="docs/images/showcase-p1.png" width="380" alt="Sample page: text in the 14 standard fonts, shapes, JPEG image"> <img src="docs/images/showcase-p3.png" width="380" alt="Sample page: embedded Unicode fonts, transparent PNG, rotation and watermark"> <img src="docs/images/report-p1.png" width="380" alt="Multi-page finance report from the layout engine: justified paragraphs, lists, tables with row and column spans"> <img src="docs/images/template-invoice.png" width="380" alt="Invoice rendered from the built-in template with JSON data: line items, discount, VAT, total in words"> </p>

Installation

dotnet add package LifeOS.Pdf

The core package is 100% managed code with no dependencies and needs nothing else on a developer machine or a server, so it runs on Linux, Windows, macOS, Docker and serverless hosts alike. Optional companion packages (Phase 9–10) are installed separately and may use native libraries:

dotnet add package LifeOS.Pdf.Signing          # digital signatures (.NET 8+)
dotnet add package LifeOS.Pdf.Rendering        # PDF → PNG (PDFium)
dotnet add package LifeOS.Pdf.Barcode.Scanning # read QR/barcodes (zxing-cpp)
dotnet add package LifeOS.Pdf.Ocr              # OCR (Tesseract)
dotnet add package LifeOS.Pdf.Scanning         # render + barcode + OCR

Or install the core and all five companions at once (.NET 8+):

dotnet add package LifeOS.Pdf.All

Usage

Read the step-by-step tutorial — one runnable example for every feature, from your first PDF to forms, encryption and scanned documents.

Status

Phase Scope Status
0 Core writer: pages, text in the 14 standard fonts, shapes, JPEG, compression, metadata ✅ v0.1
1 TrueType fonts with full Unicode, transparent PNG, image → PDF, rotation & opacity ✅ v0.2
2 Layout engine: paragraphs, multi-page tables, header/footer, kerning, font fallback ✅ v0.3
3 Reports from templates (invoice, receipt, payslip, finance report, certificate, table report for CSV/XLSX) ✅ v0.4
4 QR codes & barcodes (vector, PNG, SVG), QRIS ✅ v0.5
5 Links, bookmarks, table of contents, attachments, annotations ✅ v0.6
6 Open existing PDFs: merge, split, watermark, page numbers, n-up, compress ✅ v0.7
7 Extract text, images and tables (CSV/JSON), search, PDF → HTML, true redaction ✅ v0.8
8 Forms: create, fill, flatten ✅ v0.9
9 Encryption (password) & digital signatures ✅ v1.0
10 Render to images, read QR/barcodes, OCR (separate packages) ✅ v1.1
11 HTML → PDF (wkhtmltopdf & Chromium, separate package) planned
12 Office → PDF: Excel/CSV, Word, PowerPoint; Word templates (mail merge) — separate package planned
13 Vector charts, Markdown → PDF, PDF tables → Excel planned
14 PDF/A, PDF/UA, gradients, layers, e-invoicing planned

The full roadmap and use-case mapping is in docs/PHASES.md.

Build & test

Requires the .NET SDK 8 or newer (SDK 10 also builds the net10.0 target).

dotnet build -c Release
dotnet test -c Release
dotnet run --project samples/LifeOS.Pdf.Samples -f net8.0 -- out/net8.0

Benchmarks (numbers and what was optimized: docs/performance.md):

dotnet run -c Release --project benchmarks/LifeOS.Pdf.Benchmarks

External validation (Python 3.10+, development only — not needed to use the library):

pip install pikepdf pypdf pypdfium2 fonttools opentype-sanitizer
python tools/validate_pdf.py out/net8.0/showcase.pdf --render-dir out/png

Further reading

How it is developed

Each phase goes through analyst → architect → developer → QA, one phase per release. Project rules are in CLAUDE.md, the agent roles in .claude/agents, and the per-phase playbook and documents in docs/ (internal documents are written in Indonesian).

License

MIT. The code is written from the ISO 32000 specification and does not copy from AGPL-licensed or proprietary libraries. See THIRD_PARTY_NOTICES.md.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on LifeOS.Pdf.Barcode.Scanning:

Package Downloads
LifeOS.Pdf.Scanning

Combined render + barcode + OCR pipeline for scanned PDFs.

LifeOS.Pdf.All

Everything in one command: LifeOS.Pdf plus signing, rendering, barcode scanning, OCR and the combined scanner (.NET 8+).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 101 11/17/2026