How to Convert a PDF Drawing to DXF for CAD (and Keep the Scale)
When a PDF contains real vector lines, how to bring them into AutoCAD, LibreCAD or QCAD as DXF, how to set the scale, layers by colour and what to check.
&c=%23155e75&k=from-pdf)
How to Convert a PDF Drawing to DXF for CAD
You need to modify a floor plan, quote for steelwork or cut a shape on a laser, and all you have is a PDF. Redrawing from scratch takes hours. If the PDF was exported from CAD or design software, its lines are still inside it as vectors and can be brought back into CAD. This guide explains when that works, how to keep the scale and how to use PDF to DXF.
Vector PDF or scan?
The first question is whether your PDF has vectors at all.
- Exported PDFs from AutoCAD, Revit, ArchiCAD, SketchUp, Illustrator or Inkscape keep lines as lines. Zoom in and edges stay perfectly sharp.
- Scanned drawings are pictures. Zoom in and you see pixels. These cannot be converted to useful DXF; they need tracing.
- Flattened PDFs, printed as images, behave like scans.
A quick test: try to select a line or a word with the text tool. If text is selectable and lines stay crisp at 800 percent zoom, the PDF is vector.
What gets converted
The converter reads each page's drawing instructions:
- straight lines and rectangles become polylines;
- curves become polylines of short segments, with a smoothness setting;
- closed shapes become closed polylines;
- text becomes CAD text with its height and angle;
- each line colour gets its own layer, so you can switch groups off.
The file uses the classic R12 ASCII DXF format, which practically every CAD, laser and CNC program reads.
Getting the scale right
PDF coordinates are in points, 1/72 of an inch, and PDFs do not store the original drawing units. You set the scale in one of two ways:
- From the drawing scale. If the sheet says 1:100, choose 1:100; each point becomes 0.3528 mm × 100 = 35.28 mm in the DXF.
- From a known dimension. Measure a dimension in the PDF, for example a 5,000 mm wall that measures 141.7 points, and enter both numbers. This also corrects drawings that were scaled to fit the paper when printed to PDF.
For logos and artwork with no real-world scale, keep points.
After import
- Open the DXF and set units to millimetres.
- Measure a dimension you know.
- If needed, scale the whole drawing by the correction factor.
- Delete or freeze colour layers you do not need, such as hatching.
- Join segments into polylines where your CAD program allows.
What to expect
Converted drawings are not as clean as the original CAD file. Hatches arrive as many small lines, dimensions as lines and text rather than dimension objects, and fonts are replaced. For quoting, checking and small modifications that is usually fine; for heavy redesign, ask for the original DWG or DXF.
Example
An A3 site plan exported from CAD at 1:200 becomes a DXF with 3,412 polylines on six colour layers and 148 text entities. In LibreCAD the 40 m boundary measures 40,000 mm, so a surveyor can start setting out without redrawing.
Laser cutting and CNC
Makers often receive logos and templates as PDF. For cutting, keep the scale in points or set it from a known width, check that outlines are closed polylines, and remove text layers you do not want cut. Increase curve smoothness for small round shapes, so circles do not come out as polygons.
Multi-page PDFs
Each page becomes its own DXF file, which keeps sheets separate. Convert only the sheets you need with a page range.
Rights and privacy
Use drawings you are allowed to modify. The conversion runs in your browser and the PDF is not uploaded.


&c=%23b45309&k=from-pdf)
