Why this demo exists
PDF products often break at delivery time, not extraction time: variant sprawl, unclear cache keys, and brittle invalidation. This pattern uses OkraPDF URL grammar and deterministic profile tokens so every page/image artifact has a stable path.What it proves
- Define named image/page profiles (
thumb,card,hero,print). - Generate canonical transform tokens from profile config.
- Serve immutable URLs through edge/CDN with predictable cache behavior.
- Promote hot variants to materialized paths when traffic justifies it.
Cloudinary technique transfer for PDFs
You keep the same ergonomics teams love in image pipelines:- URL-driven transforms
- deterministic outputs
- strong CDN cacheability
- explicit profile contracts across frontend + backend
Demo Source
runtime-demo/demos/04-cloudinary-technique-transfer.tsruntime-demo/demos/05-pipeline-sweet-spot.tsruntime-demo/apps/vercel-pdf-pipeline-starter