How to convert a scanned PDF to DXF

By Owain Wedlake, Founder, Nest Ready · Published

A scanned PDF holds only an image of the drawing, with no lines or arcs for software to export, so it can’t be converted to DXF the way a CAD-exported PDF can. The part has to be rebuilt: redrawn in CAD, auto-traced and cleaned up, drawn by a CAD bureau, or traced on its own by a tool built for drawings. Whichever way you go, the size has to come from the dimensions written on the drawing, and the DXF has to be checked against the drawing before anything is cut.

Three steps from a scan to a DXF: the scanned sheet with its part, dimension, border and title block; the part's profile and hole traced on their own; and the traced part sized from the written 120 mm dimension120120 mm1. Scan2. Trace the part3. Scale from thedimensions
Every route does the same two jobs: pick the part out from the rest of the sheet, and size it from the written dimensions.

Why can’t a scanned PDF just be converted?

A PDF to DXF converter copies the drawing instructions in a PDF, its lines, curves and text, into CAD entities. A scan has none: the page is one picture. A converter that reads vector data gives you an empty DXF, or at best the picture placed as an image, which CAM can’t cut as a profile. If you’re not sure which kind you’ve been sent, how to tell whether a PDF is vector or raster settles it in a minute.

Getting from pixels to geometry takes two jobs the file can’t do for you:

  • Finding the part. Nothing in a scan says which marks are the profile and which are dimensions, centre lines, notes or the border. Someone, or something, has to pick out the part’s edges and decide where each line really runs, because a printed line is several pixels thick.
  • Finding the size. A scan’s pixel count depends on its resolution, and the paper may have been reduced on a copier or printed to fit the page, so the scale note can be wrong too. The dependable reference is the dimensions written on the drawing.

What are your options for getting a DXF from a scan?

First, ask the customer for the CAD-exported PDF or the native CAD file. If either exists, nothing has to be traced. If not, there are four ways to go.

Redraw it in CAD from the dimensions

Draw the part from the written dimensions, with the scan open alongside or inserted as an underlay to check the shape against. This gives you the most control: true arcs and circles, a closed profile and exact sizes, and reading every dimension catches mistakes on the drawing before they reach the shop floor. But it’s the slowest route and needs someone who can use CAD. Features that aren’t dimensioned have to be measured off the scan or queried, and a misread dimension gives a clean, confident, wrong part.

Use an auto-trace or vectorising tool

These tools turn the dark pixels of an image into vector outlines for CAD. They’re fast, need no drafting skill, and work well when the page holds little but the outline, such as a full-size template.

On an engineering drawing they trace everything: dimension lines, arrowheads, text, hatching, the border and the title block. Depending on the setting, a drawn line can come out as its two edges rather than one line. Straight edges and arcs come out as many short segments or wobbly curves that have to be replaced with true lines and arcs. And the trace has no size: you scale it by hand to a known dimension, then check one in the other direction in case the scan was stretched.

Send it to a CAD drafting bureau

A bureau redraws the scan and sends back a DXF, often with a native CAD file. It’s hands-off, needs no CAD skill in-house, and a good bureau queries unclear dimensions rather than guessing. The costs are turnaround and a charge per drawing, which hurt most when you’re quoting work you may not win, and what comes back still has to be checked.

Extract the part with Nest Ready

Nest Ready is our product, so here is what it does and where it stops. It reads each page of an upload on its own, and on a scanned page:

  • It traces the part only. The profile and holes are traced from the pixels. The model reads the text but doesn’t trace it, so dimensions, notes, the border and the title block stay out of the DXF.
  • Scale comes from the written dimensions and stands only when at least two readings agree. “SCALE 1:N” notes are ignored, and there’s no scale to enter before you upload.
  • Each part shows a stated accuracy, such as ±0.6 mm. Scans worse than 1.0 mm are refused.
  • Anything uncertain is flagged for review, and parts from scans are flagged by default.

The DXF is R12 with LINE, ARC and CIRCLE entities only: the outer profile on layer OUTER, holes on layer INNER, at true size in millimetres. It takes around 15 seconds per part, on average, and a part from a scan counts as 5 parts against your allowance. More in scanned PDF to DXF.

The limits: the fixes in review are closing a gap, removing a duplicate, deleting a hole and setting the true size. There’s no free-form editing and no way to add a hole, so a part that needs more is re-run with a note, or rejected and redrawn in CAD. Review is advisory: flagged parts you haven’t decided on still download. And it makes part geometry only, with no toolpaths, cutting parameters, machine code or nesting.

Four ways to get a DXF from a scanned PDF
Redraw in CADAuto-trace toolCAD bureauNest Ready
What you getOnly what you draw: true lines, arcs and circlesOutlines of everything: part, dimensions, text and borderA drawn DXF, to the brief you giveThe profile and holes only, with a stated accuracy per part
How scale is setYou draw to the written dimensionsBy hand, scaling the trace to a known dimensionDrawn to the written dimensionsFrom the written dimensions, when at least two readings agree
What’s left to clean upLittle, but a misread dimension gives a clean, wrong partDelete the dimensions, text and border; refit lines and arcs; close the profileDepends on the bureau; it still needs checkingReview flagged parts: close gaps, remove duplicates or stray holes, set the true size
Typical turnaroundMinutes to hours of drafting per partA quick trace, then clean-up that grows with the drawingDepends on the bureau and its queueAround 15 seconds per part, on average, plus your check

How do you get a scan that converts well?

Whichever route you take, the DXF can only be as good as the scan. If you’re scanning the drawing, or can ask the customer to scan it again:

  • Scan at 300 dpi, at 100%. Fit-to-page or a reduced copy shrinks the text and thin lines with everything else.
  • Keep it flat, on a flatbed with the lid down. Folds and curled edges bend the lines in the image, and a sheet feeder can skew a creased sheet.
  • Keep it square to the edge of the glass. A skewed scan can be straightened, but that resamples the image and softens it.
  • Get the whole sheet, border included. A cropped scan can lose a dimension, a note or the title block; with the border in, you can see nothing is missing.
  • Make sure every dimension is legible. Greyscale usually keeps faint lines and small text better than black and white, and heavy JPG compression blurs edges. If you can’t read a number, no method can; ask the customer.

Resolution matters most on a small-scale view: at 1:5, each pixel covers five times as much of the real part as at 1:1. Nest Ready won’t guess at a page that isn’t up to it. It refuses a scan whose writing is too small to read reliably, asking for a rescan at 200 dpi or more, or one too coarse for the drawing’s scale, and says why and what to do about it.

How do you check the DXF before cutting?

However it was made, a DXF from a scan is a reconstruction. Before it goes to CAM:

  1. Check the overall sizes in both directions against the written dimensions. A wrong scale, or a scan stretched one way, can pass on one and fail on the other. Check the import units too: an R12 DXF can’t record its units, so a millimetre file read as inches comes in 25.4 times too big.
  2. Check every hole: the count, each diameter and each position. Holes are easy to miss, merge or misplace on a scan.
  3. Check the profile is one closed contour, with no gaps or doubled lines. CAM may refuse an open profile, or cut a doubled line twice.
  4. Check curves are true arcs and circles, not chains of short segments, which can leave flats on the cut edge.
  5. Check anything that wasn’t dimensioned. Those sizes came from the image alone, so query them if they matter.
  6. Check it’s the current revision. A scan of an old drawing may have been superseded.

Check every DXF against the drawing before cutting. That holds as much for a part you redrew yourself as for a traced one: the drawing, not the DXF, is the record of what the customer ordered.

Your next job starts here.

Bring the drawing. Leave with the part.

Try 25 parts free No card required.

We'd like to use Google Analytics cookies to see which pages help people find Nest Ready. Nothing is set unless you accept. Cookie policy