DOM -> IR -> WritersTypeScript ESMCAD + Vector + Raster
layout2vector turns rendered web layouts into production-ready files.
Extract live DOM geometry (HTML, SVG, transforms, form controls, optional same-origin iframes) and write it as DXF, DWG, EMF/EMF+, PDF, SVG, PNG/JPEG/WEBP, Canvas, or standalone HTML.
One extraction, many targets
One intermediate representation feeds CAD, print, vector, and raster outputs so your export logic stays consistent.
Text and geometry stay structured
Unlike screenshot-only pipelines, text-capable writers keep editable text where possible.
Built for technical workflows
DXF, DWG, EMF, and EMF+ support is first-class, not an afterthought via raster conversion.
Complex PDF with embedded WOFF/WOFF2 fonts
Uses extractIRWithAssets() and PDFWriter({ useFontEditorCore: true }) so non-TTF webfonts are converted and embedded in the exported PDF.
For a detailed matrix with html2canvas, html2canvas-pro, and SnapDOM, see FEATURES.md.
Example outputs
Complex DOM extraction with mixed CSS effects.Real-world webpage rendering converted from live layout.Gradient-heavy content exported for PDF workflows.