Technical answer

How to generate a long-lasting memory PDF on-device on iPhone

A long-lasting memory PDF needs a stable page model, not just a printout of what is on screen. The most important design decision is keeping content, pagination, and drawing independent of one another.

A recommended six-stage pipeline

How Ensō implements this

Ensō uses BookEngine for layout selection, BookPaginator for pagination, and BookHeirloomRenderer for drawing. When images are missing it falls back to image-free master layouts; AI-track output must pass BookEnvelope validation, and on failure the entire book falls back.

Continue reading

Sources

  1. Apple UIGraphicsPDFRenderer
  2. Ensō BookRenderer (internal code audit)