1. The DPI Resolution Math: What Happens When You Stretch a PNG to ISO A1
When designing a system architecture diagram on a modern laptop display (such as a MacBook Pro Retina or 4K Dell UltraSharp), an Excalidraw diagram looks deceptively crisp. That sharpness is an illusion of screen pixel density (~220 PPI viewed across a 14-inch physical width).
When you click Export to PNG in Excalidraw, the HTML5 <canvas> element serializes the bounding box into a 2D array of RGBA pixels. Let’s examine the exact resolution math when that bitmap is sent to an architectural plotter:
Because modern browsers enforce a hard security and GPU memory ceiling on HTMLCanvasElement dimensions (typically 16,384 × 16,384 pixels or 268 megapixels total area), exporting a large diagram as a high-DPI raster image either crashes the browser tab or silently downscales the export. Worse yet, bilinear interpolation during print scaling introduces grey anti-aliasing halos around black text, forcing the printer to fire composite CMYK droplets instead of pure black (K=100%) pigment ink.
2. Resolution Independence: Cubic Bézier Curves in SVG & PostScript/PDF
A common misconception is that Excalidraw’s organic, sketchy look requires bitmap textures. In reality, Excalidraw’s underlying rendering engine (rough.js) is 100% mathematical. Every hand-drawn rectangle, hachure fill line, and curved arrow is defined by parametric cubic Bézier equations:
When our converter invokes exportToSvg and translates the resulting DOM tree through svg2pdf.js into jsPDF, those four control points (P₀, P₁, P₂, P₃) are scaled into ISO 216 millimeter coordinates and written directly into the PDF content stream. Whether you print the resulting file onto an A4 handout or a 1,200 DPI A0 poster, the printer’s hardware Raster Image Processor evaluates B(t) at the physical resolution of the printhead.
Ad space reserved (article-mid)
3. Solving the WOFF2 vs. TrueType (.ttf) Font Embedding Gap in PDFs
If you simply export an .svg file from Excalidraw and open it on another computer or send it to a print shop, all of your hand-drawn labels suddenly revert to Times New Roman or Arial, overflowing their boxes and breaking arrow alignments.
Why does this happen? Web browsers use WOFF2 (Web Open Font Format 2) with Brotli compression for CSS @font-face rendering, whereas the ISO 32000 PDF specification requires embedded TrueType (.ttf) or OpenType tables inside the PDF file’s /FontDescriptor dictionary.
To guarantee zero font substitution, our build pipeline decompresses Excalidraw’s bundled WOFF2 font assets into standalone TrueType binaries (Excalifont-Regular.ttf, Virgil-Regular.ttf, CascadiaCode-Regular.ttf, ComicShanns-Regular.ttf, Nunito-Regular.ttf, Lilita-Regular.ttf, and LiberationSans-Regular.ttf) and registers them inside jsPDF’s Virtual File System before rendering a single text node.
4. Plotter Economics: Why Ink-Saving Light Mode Conversion Matters
Many developers prefer working in Excalidraw’s Dark Mode (#121212 charcoal canvas with inverted light strokes). However, printing a dark-mode canvas on an A1 sheet requires covering 0.50 m² of paper with heavy black ink:
- Ink Cost: Flooding an A1 sheet with solid black background consumes roughly 8 to 12 milliliters of pigment ink—costing 15× more per sheet than a line-art print on white bond media.
- Paper Cockling & Smudging: Uncoated 80 gsm plotter paper absorbs water-based pigment ink, causing the sheet to buckle and potentially strike the printhead carriage.
- Automatic Light-Mode Inversion: Our converter’s Print-Friendly Light Mode toggle instructs Excalidraw’s vector exporter to invert luminance values during SVG generation (`exportWithDarkMode: false`), producing dark, high-contrast strokes on a pure white sheet with one click.
Vector vs. Raster Excalidraw Printing FAQs
Technical questions on DPI math, PDF font tables, and wide-format reprographics.