PDF to DXF, free in your browser
A PDF exported from CAD, Illustrator, Inkscape or a drawing program usually still holds the real lines and curves. FlatCad reads them, shows the drawing at the size it was printed, and exports a DXF your CAD, laser or CNC software can use. The work is in checking the scale and clearing out what isn't geometry; both are covered below.
How to convert a PDF to DXF
Open the PDF. Go to flatcad.com, click Open (or press Ctrl+O), or drop the PDF on the canvas. The file is read on your computer.
Check the scale. Click a line whose length you know; the panel on the right shows its length in mm. If it is off, scale everything with K (worked example below).
Clean up. Delete the title block, border, hatching and anything you don't want cut. Trim, extend, fillet and offset as needed.
Export. Click DXF for an AutoCAD 2000 (R2000) DXF in millimetres, or SVG.
Vector PDF or scanned PDF?
Zoom right in on the PDF in your viewer. If the lines stay sharp, it's vector and imports directly. If they turn blocky, it's a scan or a picture: there are no lines inside it to convert, and FlatCad reports "No lines or shapes found in that PDF file. Scanned pages and photos are images, not lines". Many PDFs are both: a vector title block around a scanned drawing. Then the frame imports and FlatCad notes the embedded picture it skipped.
Getting the scale right
PDF measures everything in points, 1/72 of an inch (0.3528 mm), and FlatCad converts points to millimetres exactly. So the drawing comes in at the size it would print on paper: an A4 page is 210 × 297 mm. That is only real size if the drawing was printed 1:1.
A drawing at a stated scale. A plan printed at 1:50 has a 5 m wall measuring 100 mm. Select everything, press K, click a base point, type 50 and press Enter: the wall is now 5000 mm.
A drawing "fitted to page". Many PDFs are scaled to fit the sheet, so the factor is arbitrary. Find a dimension printed on the drawing, say a door marked 900. Measure its line in FlatCad: 12.86 mm. Scale by 900/12.86 (FlatCad works out the division), which is a factor of about 70. Check a second dimension on the other side of the drawing; if that one is out by more than a line width, the drawing was stretched unevenly when it was made and no single factor will fix it: go back to the source file if you can.
What comes across, and what doesn't
| In the PDF | In FlatCad |
|---|---|
| Lines, rectangles, polygons | Lines, joined into closed polylines in the DXF |
| Circles (drawn in PDF as four curves) | One true circle |
| Other curves | True arcs wherever an arc fits within 0.01 mm, short lines elsewhere |
| Filled shapes | Their outline |
| Stroke and fill colours, including CMYK | Kept on each line; near-black counts as black |
| Clipping paths and invisible paths | Left out, so page masks don't become cut lines |
| Dash patterns and line weights | Ignored: every line is solid and thin |
| Live text and embedded pictures | Skipped, with a note saying how many |
Arcs matter for cutting. A curve stored as hundreds of tiny straight segments makes a laser or CNC stutter at every joint, and a CAM program can't offset it cleanly. Turning circles back into circles and arcs back into arcs gives the machine smooth moves and keeps hole diameters measurable in CAD.
Cleaning up an architectural or engineering PDF
- Hatching (concrete, insulation, section fills) arrives as thousands of short lines. Drag a selection box around one hatched area, delete, and repeat; it is usually faster than picking lines.
- Arrowheads on dimensions are small filled triangles, so they come in as tiny closed outlines. If you are cutting the part, delete the dimensions entirely.
- Doubled lines appear where the exporting program drew a fill and a stroke on the same edge. A laser cuts both, burning that edge twice; delete one.
- Colours survive, so lines that were red in the drawing are still red. Use that to tell cut, score and engrave lines apart before exporting.
From Illustrator? Open the .ai file directly: see AI to DXF. From Inkscape or a box generator? See SVG to DXF. Just want to look at the DXF afterwards? The DXF viewer.
Questions
Will it work with a scanned drawing?
Not as lines. A scan is a picture of a drawing, with no lines inside it, and FlatCad says "No lines or shapes found". Save the page as a PNG or JPG, open that in FlatCad as a trace image, use Set scale (2 points) on a known dimension, and draw over it.
The drawing came in at the wrong size. How do I fix it?
A PDF stores the size it was printed at. Measure a line whose real length you know, divide the real length by the measured one, select everything, press K, click a base point and type that factor. FlatCad accepts the division itself, for example 900/12.86.
Why are my dashed centre lines solid?
Dash patterns are a drawing style in the PDF, not geometry, and they are not read. Centre lines, hidden lines and construction lines come in solid. Delete them or move them to a layer you don't cut.
What happens to the text and dimensions?
Live text is skipped, and FlatCad shows a note saying so. Text that the exporting program turned into outlines comes in as shapes. Dimension lines come in as plain lines and each arrowhead as a small closed triangle, not as DXF dimension objects.
My PDF is password-protected and won't open.
An encrypted PDF can't be read without its password. Open it in a PDF viewer with the password and print it to a new PDF (keeping vectors), then open that.
My PDF has many pages.
Up to 50 pages are imported, placed side by side from left to right with a gap of a tenth of a page width between them.