Guides / pdf to dxf for cnc

PDF to DXF for CNC: How to Get a File Your CAM Software Will Cut

Updated 30 October 2026

Converting a PDF to DXF for CNC work takes a minute; getting that DXF to cut at the right size, with closed contours and clean toolpaths, takes a short and very specific check. CAM software (computer-aided manufacturing, the program that turns geometry into G-code for a router, mill, plasma or waterjet) is far less forgiving than your eyes. A drawing that looks perfect on screen can still hide open profiles, doubled lines and the wrong units.

Here is what to check, in the order that saves the most scrap.

What does a CNC machine need from a DXF file?

A CAM program reads geometry, and it wants that geometry in a very particular shape:

  • True size. One drawing unit must equal one millimetre (or one inch) on the finished part.
  • Known units. The CAM program has to know whether 100 means 100 mm or 100 inches.
  • Closed contours for every profile and pocket. An open outline gives no inside or outside to cut.
  • No duplicate lines. Two identical lines on top of each other become two passes, or a toolpath error.
  • Only cutting geometry. Title blocks, dimension lines, hatching and notes all have to go before toolpaths.

A PDF supplies none of this by itself, because it records ink on paper. The converted DXF is your starting point, and the cleanup below turns it into cutting geometry.

How do you convert the PDF to DXF for CNC?

  1. Confirm the PDF is vector. Zoom to 1600% on a corner: crisp lines mean vector, stair-stepped pixels mean a scan. The full test is in how to tell if a PDF is vector or scanned.
  2. Convert it. A free PDF to DXF converter that runs in your browser gives you a DXF R12 file with one layer per colour, text as TEXT entities and curves as polylines. Nothing is uploaded.
  3. Set the scale before export. Click two points of a dimension you know and type the real length.
  4. Open the DXF in CAD and clean it up (next sections).
  5. Import the clean file into CAM and measure one feature again before you generate toolpaths.

Why is the part the wrong size in CAM?

DXF R12 does not store drawing units. The $INSUNITS header variable arrived with the AutoCAD 2000 DXF format, so an R12 file is unitless and the CAM program either asks you or assumes. Fusion 360’s Insert DXF shows a units choice for a unitless file; other programs pick a default silently.

The wrong factor tells you the cause:

Part comes out Factor Cause
25.4 times too big 25.4 Millimetres read as inches
25.4 times too small 1/25.4 Inches read as millimetres
About 2.83 times too big 2.835 PDF points read as millimetres (1 pt = 1/72 in = 0.353 mm)
50 or 100 times too small 50 / 100 Paper size kept, drawing scale 1:50 or 1:100 never applied
10 times off 10 Centimetres and millimetres mixed up

Measure one long, known dimension in CAD, divide the real length by the measured length, and you have your factor. The full fix for each case is in why a converted PDF is not to scale.

How do you join polylines into closed paths?

A PDF writer draws a rectangle any way it likes: as four separate lines, as one path, or as two L-shapes. Arcs and circles arrive as polylines made of short straight segments. After conversion, a profile that looks closed can turn out to be a chain of loose pieces whose ends sit a hair apart.

In AutoCAD:

  1. Run OVERKILL on everything first. It deletes duplicate and overlapping lines, and joining doubled geometry gives unpredictable results.
  2. Run PEDIT, type M (Multiple), select the profile, answer Yes to convert lines to polylines, choose Join and enter a fuzz distance. Start at 0.01 mm; go up to 0.05 mm only if ends still refuse to join.
  3. Or use JOIN, which since AutoCAD 2012 also turns connected lines and arcs into one polyline.
  4. Check with LIST on the result: it should report a polyline marked Closed.

Keep the fuzz distance small. A large value bridges gaps that were meant to be there and quietly moves vertices.

In Vectric VCarve or Aspire, the Join Open Vectors tool finds open vectors and closes or joins those whose end points fall within a tolerance you set. In Fusion 360, a closed sketch profile shows as a shaded area; an outline that stays unshaded has a gap somewhere.

How accurate is geometry that came from a PDF?

This is where CNC work differs from laser engraving or a quick takeoff. A good CNC router holds about ±0.1 mm, and a PDF drawn at a reduced scale cannot promise that.

Here is why. The PDF stores positions on the paper. On a 1:10 detail, a 0.05 mm rounding on paper becomes 0.5 mm on the part. On a 1:100 plan the same rounding becomes 5 mm. Curves add their own error: a 20 mm hole made of straight segments cuts as a polygon, and the machine runs it as many tiny G1 moves instead of one smooth G2/G3 arc.

The rules that follow from this:

  • Trust the dimension text over the geometry. If the drawing says 450 mm and you measure 449.6 mm, the part is 450 mm.
  • Redraw fit features. Bearing seats, dowel holes, slots for 18 mm plywood: delete the polyline and draw a true circle or line at the written size.
  • Use PDF geometry as-is for shapes, such as decorative profiles, signs, templates and brackets with loose clearances.
  • Prefer 1:1 drawings. A PDF plotted at 1:1 on A3 or A1 carries far less scale error than a 1:20 detail sheet.

What do you remove before CAM?

The converter puts each PDF colour on its own layer, which makes cleanup fast. Freeze or delete the layers that hold:

  • Hatching. It arrives as hundreds of short lines that CAM would happily cut.
  • Dimensions and leaders, centre lines and section marks.
  • The title block and border.
  • Text you are not engraving. TEXT entities need a font, and most CAM programs either skip them or swap the font. To engrave text, explode it to geometry first (TXTEXP in AutoCAD’s Express Tools) or redraw it in CAM.

Outlined text in the PDF (letters drawn as curves) arrives as polylines already. That works for V-carving, and it means you cannot edit the wording.

What about tool radius, kerf and inside corners?

Draw the part at finished size and let CAM apply cutter compensation. The CAM program offsets by the tool radius for a router, or by the kerf for plasma and laser, and it needs the true outline to do that.

Two machining facts the PDF knows nothing about:

  • Inside corners get the tool radius. A 6 mm end mill leaves a 3 mm radius in every inside corner. For a box joint or a slot that takes a square part, add dog-bone or T-bone reliefs in CAM or in CAD.
  • Narrow gaps disappear. A 4 mm slot cannot be cut with a 6.35 mm (1/4 inch) bit. Check the smallest internal feature against your smallest tool before you nest the job.

What is the final check before cutting?

Run this list on every converted file:

  1. Units confirmed, one known dimension measured in CAM.
  2. OVERKILL done, no duplicate lines.
  3. Every profile closed (LIST says Closed, or the Fusion sketch shades it).
  4. Fit features redrawn as true circles and lines.
  5. Hatching, dimensions, title block and stray text removed.
  6. Smallest inside feature larger than the tool diameter.

Six checks, five minutes, and the first cut lands on size. For laser-specific cleanup such as kerf and LightBurn settings, see PDF to DXF for laser cutting.

Questions people ask

Can I cut straight from a DXF converted from a PDF?

Yes, once you have checked three things: the part measures the right size, every profile is a closed path, and there are no duplicate lines. Skipping the check is how a 25.4 times oversized part ends up on the spoilboard.

Why does my CAM software say the contour is open?

The PDF stored the outline as separate segments, and some ends sit a few thousandths of a millimetre apart. Join them with PEDIT and a small fuzz distance in AutoCAD, or with Join Open Vectors and a tolerance in VCarve.

Should I offset the DXF for the cutter or kerf?

No. Draw the part at finished size and let the CAM program apply tool radius or kerf compensation. An offset baked into the DXF gets applied twice when someone forgets it is there.

Are holes from a PDF accurate enough for bearings or dowels?

Treat them as position markers only. Curves arrive as polylines made of short straight segments, so redraw any hole that needs a fit as a true circle at the diameter written on the drawing.

More guides