VellumPdf.Reader
2.3.1
See the version list below for details.
dotnet add package VellumPdf.Reader --version 2.3.1
NuGet\Install-Package VellumPdf.Reader -Version 2.3.1
<PackageReference Include="VellumPdf.Reader" Version="2.3.1" />
<PackageVersion Include="VellumPdf.Reader" Version="2.3.1" />
<PackageReference Include="VellumPdf.Reader" />
paket add VellumPdf.Reader --version 2.3.1
#r "nuget: VellumPdf.Reader, 2.3.1"
#:package VellumPdf.Reader@2.3.1
#addin nuget:?package=VellumPdf.Reader&version=2.3.1
#tool nuget:?package=VellumPdf.Reader&version=2.3.1
VellumPdf.Reader
The PDF reader of VellumPdf, a dependency-free PDF library for .NET 10 implemented clean-room from ISO 32000. It opens an existing PDF on a bounds-checked lexer and object parser and exposes its structure. BCL-only, with zero runtime dependencies.
- Classic cross-reference tables, cross-reference and object streams, and hybrid-reference files.
- Encrypted documents: the Standard security handler at
/V1, 2, 4 and 5 and/R2 through 6 — RC4-40 through RC4-128, AES-128 and AES-256 — opened by passing aPdfReaderOptionswhosePasswordis set. - Optional cross-reference reconstruction (
PdfReaderOptions.AllowReconstruction) for a document whosestartxrefis missing or broken: rebuilds the table by scanning the file for object headers, plaintext documents only, refusing outright the instant it finds any sign the document is encrypted rather than guessing at a key.PdfDocumentReader.WasReconstructedreports whether a given document took this path. - Tighten-only resource limits (
PdfReaderOptions.MaxDecodedStreamBytes,ReconstructionBudgetMultiplier) for a caller hardening against a decompression bomb or a file engineered to burn CPU — both can only lower the shipped default, never raise it. - Exposes the document catalog and digital signatures. Stream decoding is internal for now: the public surface reads structure and signatures, not page content — see the roadmap below.
- Writes a decrypted copy of an encrypted document (
PdfDocumentReader.SaveDecrypted), refusing a signed document unless the caller opts into invalidating its signatures. - The foundation for the signing long-term-validation path, the
VellumPdf.Conformancevalidator, and a growing general reader.
Preview. The public surface is still settling; text and image extraction is the next reader milestone, v2.4 (#98). See the roadmap below, and the Reader guide for a capability table and worked examples.
Install
dotnet add package VellumPdf.Reader
Usage
using VellumPdf.Reader;
using var reader = PdfReader.Open(File.OpenRead("input.pdf"));
VellumPdf.Core.PdfDictionary catalog = reader.Catalog; // the document catalog
foreach (var signature in reader.Signatures) // any digital signatures
Console.WriteLine(signature.SubFilter);
Documentation
Reader guide, with a capability table and worked examples: https://github.com/Tim81/VellumPDF/blob/main/docs/reader-guide.md
Architecture and reader scope: https://github.com/Tim81/VellumPDF/blob/main/docs/architecture.md
Capabilities
Built from the public API and the test suite, not from memory — a row is only marked Supported where a test proves it. See the Reader guide for the narrative walkthrough this table summarizes.
| Capability | Status | Target milestone / ISO reference |
|---|---|---|
| Classic cross-reference tables | ✅ Supported | ISO 32000-2 §7.5.4 |
| Cross-reference streams, object streams | ✅ Supported | ISO 32000-2 §7.5.7, §7.5.8 |
Hybrid-reference files (/XRefStm) |
✅ Supported | ISO 32000-2 §7.5.8.4 (#206) |
| Cross-reference reconstruction for damaged files | ✅ Supported (opt-in) | ISO 32000-2 Annex C.4, informative (#184) |
| Configurable, tighten-only resource limits | ✅ Supported | ISO 32000-2 Annex C.1/C.3, informative (#376) |
Decryption: Standard handler, /V 1/2/4/5, /R 2–6, RC4-40–128, AES-128/256 |
✅ Supported | ISO 32000-2 §7.6 |
| Reading the document catalog | ✅ Supported | ISO 32000-2 §7.7.2 |
Reading digital signature metadata (/ByteRange, /Contents, /M, /SubFilter) |
✅ Supported (read only, not verified) | ISO 32000-2 §12.8 |
Writing a decrypted copy (SaveDecrypted/SaveDecryptedAsync) |
✅ Supported | #186 |
| Lexer/parser hardened against malformed input (property-based fuzzing, round-trip oracle) | ✅ Supported | #99 |
| Text extraction | ⏳ Planned | v2.4 (#98) |
| Image extraction | ⏳ Planned | v2.4 (#98) |
Graduating VellumPdf.Reader from Preview to Stable |
⏳ Planned | v2.4 (#187) |
| Reading a document that uses an ISO/TS 32001–32004 extension (AES-GCM, PDF-MAC, SHA-3, EdDSA) | ⚠️ Partial — AES-GCM is rejected (UnsupportedPdfFeatureException); PDF-MAC is ignored and SHA-3/EdDSA signatures read as opaque, none verified |
v2.6 (#236, #237, #238, #239) |
| Signature verification (integrity, coverage, certificate chains, revocation, achieved PAdES level) | ⏳ Planned | v2.13 |
| Round-trip editing of an existing document | ⏳ Planned | v3.0, VellumPdf.Editing (Epic #101) |
The VellumPdf family
| Package | Status | Summary |
|---|---|---|
| VellumPdf.Kernel | Stable | Low-level PDF object model, canvas, fonts, images, encryption. |
| VellumPdf.Fonts.Standard14 | Stable | Embeddable standard-14 font substitutes for PDF/A text. |
| VellumPdf.Layout | Stable | High-level document builder: paragraphs, tables, images, pagination. |
| VellumPdf.Signing | Stable | PAdES / PKCS#7 digital signatures with timestamps and LTV. |
| VellumPdf.Reader (this package) | Preview | Opens existing PDFs, encrypted ones given their password; exposes catalog and signatures; writes a decrypted copy with configurable resource limits. |
| VellumPdf.Conformance | Stable | In-process PDF/A and PDF/UA preflight validation. |
| VellumPdf.Cli | Stable | vellum-preflight command-line PDF/A and PDF/UA validator. |
| VellumPdf.Barcodes | Stable | QR, Data Matrix, Aztec, PDF417, Code 128/GS1-128, Code 39, EAN/UPC, and ITF-14 as vectors. |
Roadmap
Planned direction, tracked as GitHub milestones. These are scopes, not commitments — the milestones carry no due dates. 2.3.1 is the latest published release.
Scope past 2.5 runs as two parallel tracks, because auditing the layout engine turned up more work than the PDF 2.0 conformance gap did. Both ship from the same version numbers.
Kernel and conformance
| Milestone | Scope |
|---|---|
| 2.3 — Reader robustness (released) | Cross-reference reconstruction for damaged files (#184), a decrypted-copy writer (#186), the /XRefStm precedence decision (#206), reader fuzzing (#99), and the CI and oracle debt that makes all of it verifiable. |
| 2.4 — PDF content extraction | Text and image extraction on top of the reader (#98), and graduating VellumPdf.Reader from Preview (#187). |
| 2.5 — PDF/A-4 and PDF/A-1 profiles | PDF/A-4 (#222) so conformance output stops downgrading to %PDF-1.7, PDF/A-1 (#218), and dropping the keys ISO 32000-2 deprecates (#325). |
| 2.6 — ISO/TS extensions to PDF 2.0 | The four Technical Specifications that amend PDF 2.0: AES-GCM (#236), PDF MAC integrity (#237), SHA-3 (#238) and EdDSA (#239). The reader currently rejects every AES-GCM file, so this closes an interoperability bug as well as adding features. |
| 2.7 — Embedded files and associated files | Attachments, the /Names tree, the missing annotation subtypes, and ISO 32000-2 §14.13 associated files. Unblocks PDF/A-4F. |
| 2.8 — Colour and paint | PDF functions, the full shading model, tiling and shading patterns, and the colour spaces beyond the device ones and ICCBased. |
| 2.9 — Rendering and resources | Transparency and blend modes, the complete ExtGState, form XObjects, inline images, optional content, and the page boundary boxes. |
| 2.10 — Font completeness | Type 1, bare CFF, simple TrueType and Type 3 fonts; predefined CMaps and vertical writing; kerning; and enforcing the fsType embedding permission the library currently parses and ignores. |
| 2.11 — Tagged PDF 2.0 writer | Structure namespaces, structure destinations, and the ISO/TS 32005 containment matrix. |
| 2.12 — PDF/UA-2 and WTPDF | The ua2, wt1a and wt1r rule sets. |
| 2.13 — Signature verification | Verifying signatures, not only producing them: integrity, coverage, chains, revocation and achieved PAdES level. |
Layout
| Milestone | Scope |
|---|---|
| Layout A — Foundations | Sections, a containment model, inline runs in every element, a unit type, named styles, renderer extensibility, and fixing a defect where an element spanning a page break emits two structure elements instead of one. |
| Layout B — Accessibility structure | The PDF/UA-2 element set, generated contents and indexes, captions, table header semantics, footnotes and endnotes, automatic numbering, tab stops with leaders, and internal links. |
| Layout C — Forms and semantics | Form elements that carry their own labels, ListNumbering fidelity, artifact property lists, and build-time accessibility diagnostics. |
| Layout D — Typography | Text decoration, optimal line breaking, widow and orphan control, hyphenation and floats, cell borders, and inline content such as images in a line of text. |
| Layout E — Composition | Composite elements and templates, page breaks, anchoring and rotation, page backgrounds, running bands that hold more than a single string, and prepress bleed and printer marks. |
| Layout F — Advanced layout | Multi-column flow, nested tables, a chart family, streaming generation, and the SVG import epic. |
| Layout G — International text | Unicode bidi and right-to-left, vertical and CJK writing, and the complex-script shaping epic. |
Editing existing documents. The only breaking milestone is 3.0.
| Milestone | Scope |
|---|---|
| 3.0 — Round-trip document model | A new round-trip type alongside the write-once PdfDocument, a memory-mapped backing store, and the new VellumPdf.Editing package (Epic #101). |
| 3.1 — Sign and fill existing documents | Signing a PDF this library did not write, and filling its form fields. Neither is possible today. |
| 3.2 — Append-only content edits | Annotations, metadata, watermarks, attachments, and appending flowed content. |
| 3.3 — Full-rewrite operations | Revision-history discard, re-encryption, and signature removal. |
| 3.4 — Structural editing | Page operations, merge and split, optimise and sanitise. |
| 3.5 — Redaction | Marking regions and applying them. Deliberately isolated: marking alone is not redaction. |
| 3.6 — Content editing | Reflowing text edits, and structure-tree round-trip editing of tagged documents. |
What this library implements of ISO 32000-2 today is inventoried, reference by reference, in
PDF 2.0 conformance. It emits a %PDF-2.0 header, which is not the
same as conformance, and the table says which is which. The Reader guide
and Layout guide each carry a capability table doing the same job for
their own package, checked against the code and test suite rather than against this roadmap.
VellumPdf.Reader is marked Preview in the table above; expect its public surface to settle
as these milestones land. VellumPdf.Conformance graduated to Stable in 2.0.
License
Apache-2.0. Source and issues: https://github.com/Tim81/VellumPDF
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- VellumPdf.Kernel (>= 2.3.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on VellumPdf.Reader:
| Package | Downloads |
|---|---|
|
VellumPdf.Signing
Optional digital-signature add-on for VellumPdf: PAdES/PKCS#7 detached CMS signatures over VellumPdf.Kernel.PdfDocument and VellumPdf.Layout.Document. References System.Security.Cryptography.Pkcs; keeps the core zero-dependency. |
|
|
VellumPdf.Conformance
In-process PDF/A and PDF/UA preflight validation for VellumPdf: opens a PDF through VellumPdf.Reader and runs a registry of clean-room conformance rules authored from the ISO specifications, returning machine-readable assertions (rule id, ISO clause, severity, object reference). No external veraPDF Docker image required. BCL-only, AOT- and trim-ready; rules are registered explicitly with no reflection. Covers PDF/A-2b/2u/2a and PDF/UA-1, cross-validated against veraPDF in CI on both paths of every rule. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.3.4 | 116 | 11/19/2026 |
| 2.3.3 | 237 | 9/20/2026 |
| 2.3.2 | 136 | 9/12/2026 |
| 2.3.1 | 148 | 9/10/2026 |
| 2.3.0 | 169 | 9/1/2026 |
| 2.2.0 | 160 | 8/28/2026 |
| 2.1.0 | 135 | 8/28/2026 |
| 2.0.0 | 155 | 8/17/2026 |
| 1.11.0 | 187 | 7/11/2026 |
| 1.10.0 | 924 | 7/7/2026 |
| 1.9.0 | 764 | 7/6/2026 |
| 1.8.2 | 151 | 7/5/2026 |
| 1.8.1 | 161 | 7/3/2026 |
| 1.8.0 | 156 | 7/3/2026 |
| 1.7.8 | 152 | 7/3/2026 |
| 1.7.7 | 157 | 7/2/2026 |
| 1.7.6 | 168 | 6/28/2026 |
| 1.7.5 | 161 | 6/23/2026 |
| 1.7.4 | 159 | 6/23/2026 |
| 1.7.3 | 155 | 6/22/2026 |
See https://github.com/Tim81/VellumPDF/blob/main/CHANGELOG.md for release notes.