PDF Page Order Pitfalls: Physical vs Logical Structure
Copying page 1 returns page 2 when a loader builds its page array in file object order. Why the /Kids array defines page order and how HotPDF follows it
Software Development Blog
Deep dive into PDF structure, syntax, and document internals
Copying page 1 returns page 2 when a loader builds its page array in file object order. Why the /Kids array defines page order and how HotPDF follows it
ISO 32000 requires every PDF Catalogue to have a /Pages entry. Without it parsers crash or count zero pages; recovery means scanning every object for /Type
How PDF stores its metadata and navigation layer: the XMP packet versus the Info dictionary, the outline tree behind bookmarks, and the annotation array
How PDF linearization (Fast Web View) shows page one before a file finishes loading: the linearization dictionary, hint streams, and why later edits break it
How the PDF graphics model works: the content stream, the bottom-left coordinate system, path and painting operators, the q/Q state stack, and image XObjects
Why PDF text renders as boxes on another machine or copies out as garbage: characters, codes and glyphs, font embedding, subsetting, CJK fonts and ToUnicode
Every PDF keeps the same four-part anatomy, however large: a header, numbered objects, a twenty-byte-per-row xref table and a trailer tied to startxref
How the PDF /Pages tree fixes display order, why writers nest it, how inherited attributes and a lying /Count break page code, and how to read it safely
A PDF stores each page as numbered objects plus a byte-offset index, so any conforming reader renders it identically; how startxref, catalog and page tree work
A complete one-page Hello World PDF with exact offsets, walked through by hand: header, objects, content stream operators, the xref table, trailer and startxref