Inside NextPDF
Spec: ISO 32000-2ISO 32000-2Spec: WCAG 2.2WCAG 2.2
At a glance
Section titled “At a glance”Insider_ is the part of the documentation that explains why NextPDF behaves the way it does. The reference tells you what a method returns. Insider_ tells you why it returns that value, and which standard, test, source, or piece of evidence holds the reasoning in place.
It is written for a senior engineer who is already comfortable with PDF and PHP codebases.
Why this matters
Section titled “Why this matters”PDF is an old, strict format with firm conventions: it does not tolerate guesses. A library that hides that from you is pleasant until a signed document fails validation in production and nobody can say why.
Insider_ takes the opposite stance. Pages state the boundary of what they claim, name the standard, test, source, or evidence behind the claim, and point at the limits before you find them yourself. The goal is not to impress you. It is to help you make a decision you can defend in a review.
The short version
Section titled “The short version”- Insider_ pages are editorial and explanatory, not API reference.
- Where a page rests on standards, a badge row names them at the top.
- Essays share a recurring section pattern, so you can skim to the section you need without re-learning the layout each time; an essay drops a step when it has nothing to put there.
- Nothing here restates a metric inline; numbers live with the page that owns the measurement, so a figure cannot quietly go stale in prose.
How NextPDF approaches it
Section titled “How NextPDF approaches it”Each Insider_ page covers a single topic, stands on its own, and puts the most useful statement near the top. That structure is deliberate. It follows information-design guidance: readers find what they need faster when related material is grouped and the hierarchy is visible. It also keeps the page usable with a screen reader, because the order on screen is the order in the markup.
An essay moves from context to claim to limit, through the recurring sections in this order:
- At a glanceWhat this page is, in two sentences.
- Why this mattersThe cost of getting it wrong.
- The short versionThe answer, before the detail.
- How NextPDF approaches itThe reasoning and the mechanism.
- Practical exampleA small, runnable shape.
- Common misconceptionThe trap, named.
- Limits and boundariesWhere the claim stops.
That pattern belongs to the essays. This landing page adds two orientation sections of its own — Where to start and The reading map — which are navigation for the section, not part of the essay template.
Where to start
Section titled “Where to start”Sixty essays is a library, not a queue. If you are new to the section, read one essay from each cluster, in this order — each step stands on its own, and together they cross the whole territory once:
- The NextPDF design philosophy
- The PHP 8.4 foundations
- What a PDF actually is
- What makes a PDF accessible — and why it matters
- How PDF encryption really works — and its limits
- How signatures sit in a PDF
- Qualified signatures, explained
- The NextPDF testing pyramid
- The standards landscape
- Why teams choose NextPDF
- Operating NextPDF in production
If you want to trust the section before you invest in it, read Citation discipline early — it is the canonical reference for how pages tie claims to their standards. And if you want to know who stands behind the engine, that page exists too: The company behind NextPDF.
The reading map
Section titled “The reading map”The essay library is organized as eleven clusters, in reading order — plus The company behind NextPDF, which sits on its own beside this landing page. Each cluster below names its territory and a few representative essays; the sidebar lists every essay in every cluster.
Engineering taste
Section titled “Engineering taste”How the engine decides what good looks like. Read first; it frames everything else.
PHP 8.4 & architecture
Section titled “PHP 8.4 & architecture”The substrate a senior engineer reasons about: the language floor, the type discipline, and the pipeline the types protect.
- The PHP 8.4 foundations
- Strict types, everywhere
- The pipeline model
- Memory and streaming
- The HTML pipeline
The PDF field guide
Section titled “The PDF field guide”The format itself, without the specification’s ceremony — the parts that bite, explained the way a working engineer needs them.
- What a PDF actually is
- The anatomy of a PDF file
- Incremental updates and why they matter
- Streams and filters
- Fonts: the hard part
- PDF 2.0: what changed
Getting output right
Section titled “Getting output right”Correctness beyond the bytes: color, accessibility, size, speed, and determinism — the qualities that decide whether a technically valid PDF is actually good.
- Color, profiles, and why your red is not my red
- What makes a PDF accessible — and why it matters
- The economics of PDF file size
- Fast Web View: how a PDF opens before it finishes downloading
- The same bytes every time: reproducible PDFs
Security & privacy
Section titled “Security & privacy”What encryption, redaction, and sanitization actually protect — and the failure modes each one hides when done carelessly.
- How PDF encryption really works — and its limits
- Redaction is not a black rectangle
- Sanitizing untrusted PDFs: content disarm and reconstruction
Signing & trust
Section titled “Signing & trust”Digital signatures done correctly: structure, profiles, longevity, time, validation, and scale, in dependency order.
- How a digital signature proves who signed
- How signatures sit in a PDF
- PAdES baseline profiles
- Long-term validation
- Timestamps and trusted time
- Validating a signature properly
Qualified & HSM signing
Section titled “Qualified & HSM signing”Hardware-backed keys and qualified signatures — where the key boundary actually sits, and what “qualified” requires under eIDAS.
The quality lab
Section titled “The quality lab”How the engine is held honest: the test tiers, the pinned outputs, and the numbers that are worth trusting.
Standards & craft
Section titled “Standards & craft”The meta-discipline behind the engine and these docs: which standards bind, how a clause becomes behavior, and how a claim earns its citation — in any language.
- The standards landscape
- Compliance you can hand to an auditor
- Citation discipline
- Documentation as a product
- In your own language
The case for NextPDF
Section titled “The case for NextPDF”The adoption decision, argued honestly: what you take on when you build, what you give up when you adopt, where this engine fits — and where it does not.
- Why teams choose NextPDF
- When not to use NextPDF
- Build vs adopt: the real cost of a PDF stack
- Open core, no lock-in
- Why your PDF engine belongs in PHP, not a sidecar
- One engine, every framework
In the field
Section titled “In the field”End-to-end scenarios that compose everything above. Read last; each one assumes the foundations.
- Invoices and e-invoicing
- Signed agreements workflow
- Archival and PDF/A
- High-volume document generation
- Operating NextPDF in production
- The integration decision guide
Practical example
Section titled “Practical example”Reading an Insider_ page is meant to be quick. To decide whether NextPDF’s signature handling fits a regulated workflow, you would open How signatures sit in a PDF, read At a glance and The short version, then jump straight to Limits and boundaries. Three short sections answer “can I defend this choice”. The badge row has already told you the claim is standard-backed before you read a word of body text.
If the answer is yes, Related docs routes you onward — PAdES baseline profiles and Long-term validation — without a search.
Common misconception
Section titled “Common misconception”Insider_ is sometimes mistaken for marketing: a place where the engine is praised. It is editorial. Its pages map where NextPDF fits — including when not to use it — and how to use it well. It never runs a scorecard-style comparison against a competitor: where an essay names another library, it does so only to explain fit, migration risk, or a category boundary. The subject here is NextPDF and the standards it answers to.
Limits and boundaries
Section titled “Limits and boundaries”This page is orientation. Every behavioural claim lives on the topic page that owns it and carries that page’s own citations. Insider_ content is editorial and nextpdf-docs-native. It is written and reviewed here. Where a topic touches a licensed standard, the page paraphrases and cites the clause. It never reproduces the standard’s text.
Related docs
Section titled “Related docs”- The NextPDF design philosophy — the principles the section is measured against.
- The standards landscape — the map of standards NextPDF tracks and how a clause becomes behaviour.
- Documentation as a product — the discipline behind these pages.
- Citation discipline — how claims are cited and why standards are paraphrased.
Glossary
Section titled “Glossary”- Insider_ — the editorial section explaining the reasoning behind NextPDF, distinct from the API reference. The trailing underscore is part of the section name; it is accented for emphasis only.
- Badge row — the strip at the top of standards-backed Insider_ pages naming the standards the page rests on.
- nextpdf-docs-native — content authored and owned in the documentation site itself, not derived from a package repository.