OCR & Vectorization

Scanned PDF to AutoCAD: How to Convert Raster Drawings into DXF

Updated: March 19, 2026 • By pdf2dxf Team

Working with old paper drawings that have been scanned into PDF is one of the most tedious tasks for a CAD engineer. Unlike modern "Vector" PDFs, scanned drawings are just big collections of pixels (Raster). You can't select a line or measure a distance easily.

In this guide, we'll show you how to use pdf2dxf.us to automate the vectorization process using our built-in R2V engine.

1. Raster vs. Vector: Know the Difference

Before you begin, it's important to know what you're dealing with. Standard converters fail on scanned drawings because they look for geometric instructions. A scanned PDF has none—it only has "dots".

To convert this, you need a tool that performs Pattern Recognition. It needs to "look" at the dots and realize that a horizontal sequence of black dots is actually a line.

2. Preparing Your Scan for Better Results

The quality of the output depends heavily on the source image. For the best DXF results:

  • Resolution: Scan at 300 DPI or higher. Anything lower will cause jagged lines.
  • Contrast: Ensure the lines are dark and the background is clean white.
  • Orientation: Straighten the scan as much as possible before uploading.

3. Using the pdf2dxf.us R2V Engine

When you upload a scanned PDF to our platform, our backend detects that there are no vector paths and automatically triggers the Raster-to-Vector (R2V) workflow:

  • Line Detection: We use a thinning algorithm to find the centerline of every pixel-based stroke.
  • Entity Mapping: Detected strokes are converted into LINE and POLYLINE entities.
  • Dimension OCR: We run an Optical Character Recognition pass on numbers and labels, converting them into editable TEXT.

4. Cleaning Up in AutoCAD

No R2V process is 100% perfect. After converting, you might need to:

  • Join broken lines using the JOIN command.
  • Adjust the global scale of the drawing if the units feel off.
  • Check for overlapping entities in areas with dense hatches.

Stop re-drawing from scratch

Upload your scanned drawings now and get an editable DXF in seconds.

Convert Scanned PDF

Understanding the Two Types of PDF Drawings

A vector PDF is created when AutoCAD or another CAD application plots directly to PDF. A PDF-to-DXF converter can extract these paths with high accuracy. A raster PDF (scanned PDF) contains only a bitmap image — essentially a photograph of paper — and requires Raster-to-Vector (R2V) conversion using image processing algorithms.

How to Tell if Your PDF is Vector or Scanned

Open the PDF in Adobe Acrobat Reader. Try to select a line by clicking on it. If you can select individual lines, it is a vector PDF. If clicking selects a rectangular region of pixels, it is a scanned (raster) PDF. Another method: zoom to 400% or more. Vector lines remain crisp at any zoom level; scanned lines become pixelated.

Scan Quality Requirements

Drawing typeMin DPIRecommended DPI
Large format (A0, A1)200400
A2 / A3 drawings300600
Drawings with small text400800

Ready to convert your PDF to DXF?

No signup required. 5 free conversions/day. Layers and text preserved.

Try pdf2dxf Free →

Related Articles

Open the PDF in Adobe Acrobat Reader. Try to select a line by clicking on it. If you can select individual lines or text strings, it is a vector PDF. If clicking selects a rectangular region of pixels, it is a scanned (raster) PDF.

Another method: zoom in to 400% or more. Vector lines remain crisp at any zoom level. Scanned lines become pixelated.

Converting a Scanned PDF — Step by Step

The conversion pipeline for a scanned drawing has multiple stages, each affecting the final quality.

Stage 1: Image preprocessing

Before vectorization, the scanned image needs cleaning. Common issues include background noise (paper texture, coffee stains), inconsistent line weights, and skew (the paper was not perfectly aligned on the scanner). Preprocessing steps: convert to high-contrast black and white (not grayscale), deskew the image, and remove speckle noise. These steps significantly improve vectorization accuracy.

Stage 2: Line detection (vectorization)

Vectorization algorithms trace the boundaries of dark regions in the image to produce vector paths. Simple algorithms detect straight line segments; more advanced ones detect arcs and splines. The output quality depends on image resolution (300 DPI minimum, 600 DPI recommended for detailed drawings), line contrast, and whether lines are clearly separated or touching.

Stage 3: Geometry cleanup

Raw vectorization output typically contains overshoots at corners (lines that extend past their intersection), multiple short segments where a single long line should be, and approximated circles that are actually irregular polygons. Post-processing with AutoCAD's OVERKILL, EXTEND, TRIM, and FILLET commands is usually required to produce usable geometry.

Scan Quality Requirements

Drawing typeMin DPIRecommended DPINotes
Large format (A0, A1)200400Line weight critical at this size
A2 / A3 drawings300600Standard engineering drawings
A4 detail sheets300600Often has fine text
Drawings with small text400800Text recognition requires higher DPI

Realistic Expectations for Scanned Drawing Conversion

Even with excellent scan quality, scanned PDF to AutoCAD conversion cannot match the accuracy of vector PDF conversion. Typical accuracy for a well-scanned A1 drawing at 400 DPI is ±1-2mm at full scale — adequate for reference geometry but not for manufacturing or construction dimensions that require sub-millimeter precision.

For critical dimensions, always verify against the original drawing notation rather than relying on measured coordinates from the converted geometry.

Ready to convert your PDF to DXF?

No signup required. 5 free conversions/day. Layers and text preserved.

Try pdf2dxf Free →

Related Articles