Text to PDF
Write rich text with headings, lists, links and images, then export it as a PDF via print, HTML, or in-browser canvas rendering.
Editor
images embed as base64Preview
Write something in the editor and the preview appears here.
Tips for perfect PDFs
- Images: base64 embeds print reliably. If you switch to hosted URLs, ensure CORS allows canvas use.
- Colors/backgrounds: turn on "Background graphics" in the print dialog for exact output.
- Sanitization: editor output is sanitized with DOMPurify before preview/export.
- Page size: the canvas flow slices content into A4 pages (210×297 mm).