readAFP πŸ”Beta

No AFP file? Try one of these built-in samples:

Health Coverage letter A real-world insurance letter produced by a mainframe print system. Shows how AFP encodes TrueType text runs, colored rules, table borders, and multiple font weights β€” all positioned to the nearest point using PTOCA control sequences. GOCA vector graphics Four graphic objects drawn entirely with AFP's binary vector drawing orders (GOCA): a filled rectangle, a zigzag polyline, an ellipse, and an S-curve BΓ©zier. Good for seeing how AFP represents vector art without any raster images. IOCA color photo A full-color photograph stored as an IOCA image object. AFP splits color into four grayscale ink planes (cyan, magenta, yellow, black); readAFP recomposes them in the browser with SVG color filters and multiply blending to rebuild the photo. FOCA raster font An AFP font resource that embeds its letters as bitmaps. readAFP decodes the FOCA pattern data β€” the actual 1-bit-per-pixel glyph shapes β€” and lays them out as a specimen sheet, one page per embedded typeface (Times-Roman and Courier). BCOCA QR bar code A bar code object (BBC/BDD/BDA) describing a QR Code symbol β€” AFP stores the symbology, module size and data, not a picture. readAFP reads the descriptor, generates the matrix with segno, and draws it crisp. Scan it: it points to this project's repo. Page overlay (letterhead) One page whose letterhead, rule and footer come from a reusable overlay (BMO/EMO) defined once and pulled in with a single Include Page Overlay (IPO) field β€” how AFP shares forms across many pages. readAFP composites the overlay beneath the body text.

readAFP v1.0.0Beta

AFP / MO:DCA file inspector and SVG renderer


Vibe-coded by Keith Lutz, 2026

Built with Claude (Anthropic) via Fable5

Written in Python 3.14.3


View source on GitHub β†’

Released under the MIT License β€” free to use, fork, and improve.