Skip to content

SVG Validation

PrintLint checks XML well-formedness, positive physical width and height, optional viewBox, and optional expected paper size. SVG lengths may use mm, cm, in, pt, pc, or px (96 px per inch). If data-printlint-grid="true" is present on a grid element, its numeric x, y, width, and height are checked against the root viewBox.

For safety, DTD and entity declarations are rejected. Scripts, event attributes, foreignObject, remote href/src references, and external CSS imports/URLs are reported. PrintLint never executes JavaScript, resolves external entities, downloads resources, or loads an SVG in a browser.

betacal-printlint svg export.svg --paper a4 --orientation portrait --format json