SPEC-01
What is a PDF?
The Portable Document Format describes a fixed-layout document independently of the software, hardware, or operating system used to view it. Text, fonts, vector graphics, and images travel together in one self-contained file that prints and displays identically everywhere.
SPEC-02
Anatomy of a PDF file
Every PDF has four parts: a header declaring the version, a body of numbered objects (pages, fonts, images), a cross-reference table mapping byte offsets, and a trailer pointing to it all. Readers start at the end of the file and walk backwards.
SPEC-03
How PDF compression works
Content streams are squeezed with named filters: FlateDecode (the same deflate algorithm as ZIP) for text and vectors, DCTDecode (JPEG) for photographs, and JBIG2 or CCITT for scanned black-and-white pages. A single file can mix all of them.
SPEC-04
Fonts and embedding
A PDF either references a font by name or embeds it outright — often as a subset containing only the glyphs the document uses. Embedding is what makes a file truly portable; missing fonts are why some documents render with the wrong typeface.
SPEC-05
Signatures and trust
Digital signatures embed a cryptographic checksum over the file's bytes, so any later edit is detectable. Signing appends a new revision rather than rewriting the document, preserving everything that came before — ink signatures on paper, upgraded.
SPEC-06
Archiving with PDF/A
PDF/A (ISO 19005) is the archival profile: fonts must be embedded, encryption and external references are forbidden, and color is device-independent. Libraries and governments use it so files still open correctly in fifty years.