Documentation and static examples live under this directory.
examples/index.htmlexamples/ast-to-pdf/index.htmlexamples/mkd-to-ast/index.htmlThese are not toy demos. They show a full VMPrint pipeline running entirely client-side:
StandardFontManager + Engine + PdfLiteContextfile:// and GitHub PagesIn practice, this enables production-class document generation in browser-native products and constrained environments where server-side rendering is costly or unavailable (embedded webviews, offline apps, kiosk/edge deployments, hybrid mobile wrappers).
Attention point: the core runtime ships at about ~182 KiB Brotli (index.html + styles.css + assets/*.js).
If you download these files into a local folder, you can open index.html and run the demo immediately with zero runtime dependencies (no Node.js process, no server, no external service).
| Artifact | Raw | Gzip | Brotli |
|---|---|---|---|
Runtime (index.html + styles.css + assets/*.js) |
727,383 B (~710 KiB) | 227,878 B (~223 KiB) | 186,547 B (~182 KiB) |
Runtime + built-in fixtures (fixtures/*.js) |
3,441,750 B (~3.28 MiB) | 2,242,504 B (~2.14 MiB) | 2,182,080 B (~2.08 MiB) |
fixtures/14-flow-images-multipage.js contains large embedded base64 image data and dominates total size.LocalFontManager or another font manager).