A Reusable, In-Browser Printable-Paper Engine
AnyTool’s Graph Paper Generator is the reference tool for a reusable printable-paper engine that builds grid sheets entirely in the browser. From a single options object — grid type, spacing in a real unit, paper size, orientation, margin and line colours — one geometry resolver produces unit-agnostic line and dot primitives, which feed both a vector PDF (assembled client-side with pdf-lib) and an SVG live preview. Because both renderers share the same geometry, what you see on screen matches the printed sheet exactly. Spacing is expressed in millimetres, centimetres or inches and converted to PostScript points (1/72 inch), the native unit of PDF, so the printed grid is true to scale.
- Seven grid types: square/quad, graph (major lines), engineering, isometric, dot grid, hexagonal and lined
- One geometry resolver feeds both the pdf-lib PDF and the SVG preview, so preview matches print
- Spacing in mm, cm or inch converted to points (1/72 inch) for an accurate, true-to-scale grid
- A3, A4, A5, Letter and Legal in portrait or landscape, with adjustable margin and line colours/weights
- Engine module is shared with lined-paper, dot-grid and other paper tools — no server, no CDN
