Rulingpen

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.

A machined mounting bracket in front view and section A-A, with dimensions, centre lines, notes and a title block, drawn in AutoCAD colours on a dark background.
The sample bracket that ships with the viewer, plotted by this build: rp plot rp-001-mounting-bracket.dxf -o bracket.svg

Measured against outside references

scoreboard 2026-12-01 20:16

Each 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 plainly

95.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

Three ways to use it

The Rulingpen viewer in a browser: a layer list on the left, the bracket drawing on a dark sheet in the middle with a title block giving the file name, format DXF 2000, units mm and scale, and Model, Saved view and A3 Sheet tabs below.
The free viewer with its sample drawing open. Layers, layouts, properties and measuring, all in the page.

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.

Open the viewer

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 commands

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.

The drawing model

Prices

published, yearly

The 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.