LLION/ PDF, print & document engineering

Reference

Lookups that are needed often and rarely explained well. Each page gives the value first, then the source it comes from and the edge cases that catch people out. Paper dimensions live under Printing; these pages cover the rest.

  1. PDF versionsReference

    What each version from 1.0 to 2.0 added, how the version is stored, what libraries emit, and which to target.

  2. PDF MIME typeReference

    application/pdf, Content-Disposition inline versus attachment, range requests, and the headers for Apache, nginx, Express, Django, PHP, ASP.NET Core and Go.

  3. PDF unitsReference

    The point, user space, UserUnit, rectangles, page sizes in points, and exact conversions to millimetres, inches and CSS pixels.

  4. File signaturesReference

    Magic numbers for PDF, PostScript, images, Office and font formats, how to check them, and what PDF readers tolerate.