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
<PackageReference Include="LifeOS.Pdf.Barcode.Scanning" Version="1.1.0" />
<PackageVersion Include="LifeOS.Pdf.Barcode.Scanning" Version="1.1.0" />
<PackageReference Include="LifeOS.Pdf.Barcode.Scanning" />
paket add LifeOS.Pdf.Barcode.Scanning --version 1.1.0
#r "nuget: LifeOS.Pdf.Barcode.Scanning, 1.1.0"
#:package LifeOS.Pdf.Barcode.Scanning@1.1.0
#addin nuget:?package=LifeOS.Pdf.Barcode.Scanning&version=1.1.0
#tool nuget:?package=LifeOS.Pdf.Barcode.Scanning&version=1.1.0
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
- Step-by-step tutorial — the full walkthrough with runnable examples.
- docs/PHASES.md — full roadmap and use-case mapping.
- docs/templates.md — the template language reference.
- docs/performance.md — benchmarks per phase.
- docs/releasing.md — how to publish the packages (with or without CI).
- samples/LifeOS.Pdf.Samples — a sample app with every feature.
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 | Versions 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. |
-
.NETStandard 2.0
- LifeOS.Pdf (>= 1.1.0)
- ZXingCpp (>= 0.5.3)
-
net10.0
- LifeOS.Pdf (>= 1.1.0)
- ZXingCpp (>= 0.5.3)
-
net5.0
- LifeOS.Pdf (>= 1.1.0)
- ZXingCpp (>= 0.5.3)
-
net6.0
- LifeOS.Pdf (>= 1.1.0)
- ZXingCpp (>= 0.5.3)
-
net7.0
- LifeOS.Pdf (>= 1.1.0)
- ZXingCpp (>= 0.5.3)
-
net8.0
- LifeOS.Pdf (>= 1.1.0)
- ZXingCpp (>= 0.5.3)
-
net9.0
- LifeOS.Pdf (>= 1.1.0)
- ZXingCpp (>= 0.5.3)
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 |