Read, render and plot DWG and DXF, with numbers you can check
Rulingpen is a drawing engine for AutoCAD files, written from the published format. It reads DWG from AutoCAD 1.x to 2018 and DXF, and plots them to PDF, SVG and PNG from one command-line program, a library for your own software, or a free viewer that runs in the browser.
rp plot rp-001-mounting-bracket.dxf -o bracket.svgMeasured against outside references
scoreboard 2026-12-01 20:16Each figure is one row of the scoreboard, judged against a program or a file Rulingpen did not write. The corpus is 5,966 DWG and 3,348 DXF files collected from public sources; each judge runs on a fixed sample of 200 of them, so these are sample results, not a claim about every drawing. Figures are cut, never rounded up.
99.96%
of DWG objects equal to the reference reading, field by field (R14 to AutoCAD 2018 files).
Sample of 1,223,944 objects, judge dwg, 1 Dec 2026. Target 98. How this is measured
100.0%
of DWG files from R14 to AutoCAD 2018 decoded without an error.
Sample of 200 files, judge dwg, 1 Dec 2026. Target 95. How this is measured
99.99%
of DXF records equal to ezdxf's reading (873,955 of 873,957).
Sample of 873,957 records, judge dxf, 1 Dec 2026. Target 99.5. How this is measured
99.5%
of pre-R13 DWG files (AutoCAD 1.x to R12) decoded.
Sample of 200 files, judge dwg_legacy, 1 Dec 2026. Target 95. How this is measured
0.847
mean similarity to the thumbnail AutoCAD saved in each file. On the same files ezdxf's renderer scores 0.726 and LibreDWG's dwg2SVG 0.477.
Sample of 105 drawings with a thumbnail, judge render, 1 Dec 2026. Target above 0.7268. How this is measured
100.0%
of files plotted to a PDF that qpdf accepts, 76 ms a file. This says the files open and plot, not that the plot is right.
Sample of 200 files, judge e2e, 1 Dec 2026. Target 95. How this is measured
Not done yet
said plainly95.68%
of multiline text within 2% of the size AutoCAD recorded. The fonts are open stand-ins: no AutoCAD font ships with Rulingpen.
Sample of 2,244 text entities, judge text, 1 Dec 2026. Target 90. How this is measured
93.87%
of dimensions whose geometry Rulingpen generates itself matching AutoCAD's. Plots draw dimensions from the blocks the file carries.
Sample of 7,014 dimensions, judge annot, 1 Dec 2026. Target 85. How this is measured
- No DWG writing. Rulingpen reads DWG; it does not write it yet. DXF writing exists in the library but has no judged number, so it is not offered as a feature.
- No compare, no editor, no hosted API. They are planned, in that order of need; none is built.
- Builds. The command-line program has been built and tested on macOS only. Linux and Windows builds are not published yet.
Three ways to use it
The browser viewer
Free. Drop a DWG or DXF on the page: layers, layouts, properties, measuring, and a PNG of what you see. The engine runs in the page as WebAssembly; the drawing is read on your device and never uploaded, and the page is not allowed to talk to any other site.
The rp command
rp info and PNG plots are free. A licence adds PDF and SVG plots and rp dump, the whole drawing as JSON Lines. It runs headless, needs no CAD program, and checks its licence key on the machine.
The library
The same engine as Rust crates for your own software: one drawing model for DWG and DXF, geometry, rendering and PDF, SVG and PNG output. Unknown data is carried, not dropped.
Prices
published, yearlyThe viewer, rp info and PNG plots are free for any use. The library and the paid commands: £490 a year for one developer, £1,900 for a team of five, £6,900 for a whole site or one product you ship. No sales calls. Pricing in full.
How it is made
The DWG format comes from the Open Design Alliance's public specification and from looking at files. LibreDWG, which is GPL, is used only as a compiled program to check results against; nobody working on Rulingpen reads its source. ezdxf (MIT) is the reference for DXF. No AutoCAD fonts, hatch patterns or plot styles are shipped. Every reader bounds what it allocates and is tested on deliberately damaged files. The clean-room and privacy statements.