Free · Vector Extraction · AutoCAD Compatible

Convert PDF to DWG
Extract CAD Drawings

Extract vector lines, paths and text from PDF drawings and engineering documents into DXF format -- the open standard for AutoCAD, FreeCAD, LibreCAD and all major CAD applications. Works entirely in your browser.

.dxfAutoCAD Format
VectorPath Extraction
0 KBData Sent to Server
FreeAlways

PDF Vector to DXF Converter

Upload a vector PDF -- extract lines, paths and text -- download as .dxf for AutoCAD

Drop your PDF drawing here

or click to browse -- best with vector / CAD-exported PDFs

Engineering Drawings Floor Plans Technical Diagrams Schematics
filename.pdf
0 KB
Lines: 0 Polylines: 0 Text items: 0 Total entities: 0

Vector Preview -- lines shown in cyan, text in yellow

Parsing PDF vector data...
How It Works

PDF to DXF in Three Steps

1

Upload Your PDF Drawing

Drop a vector PDF -- exported from AutoCAD, Revit, SolidWorks, SketchUp, Visio or any CAD or design application. PDF.js reads the vector path data directly from the PDF content stream.

2

Preview Extracted Vectors

A live canvas preview renders all extracted lines, polylines and text elements on a dark background. Entity counts are shown -- lines, polylines, text items. Adjust the minimum path length filter to exclude noise.

3

Download DXF or SVG

Download as a DXF R12 file that opens in AutoCAD, FreeCAD, LibreCAD and all major CAD applications. Also download as SVG for Inkscape, Illustrator or web use. Open the DXF in AutoCAD and save as .dwg.

Technical Details

Vector Extraction From PDF Content Streams

PDF.js provides access to the raw drawing operator list from any PDF page. Our converter reads these operators -- moveTo, lineTo, curveTo, rectangle, stroke -- and translates them into DXF entities.

Vector Path Extraction

Uses PDF.js getOperatorList() to read all drawing operators from the PDF page content stream -- moveTo, lineTo, curveTo (Bezier), rectangle, closePath, stroke and fill operations -- converting each sequence to DXF LINE, LWPOLYLINE and SPLINE entities.

100% In-Browser Processing

All PDF parsing and DXF generation happens entirely in your browser. No drawing data, coordinate data or text content is transmitted to any server. Suitable for proprietary engineering drawings, architectural plans and confidential technical documents.

Text Extraction

Text elements from the PDF page are extracted using PDF.js getTextContent() and added as DXF TEXT entities at their original positions. Annotation labels, dimension text, title block information and callout text are all included in the DXF output on a separate TEXT layer.

Layered DXF Output

Lines and paths are placed on your chosen layer (0, DRAWING, LINES or GEOMETRY). Text entities go on a TEXT layer. This layer structure makes the DXF immediately usable in AutoCAD workflows where layer management is central to CAD organisation.

DXF R12 Format

Output is DXF R12 (Release 12) format -- the most compatible DXF version, readable by every CAD application released since 1992. AutoCAD, FreeCAD, LibreCAD, DraftSight, NanoCAD, BricsCAD, ZWCAD and every other major CAD application opens DXF R12 without any compatibility issues.

SVG Bonus Output

In addition to DXF, the converter also generates an SVG file from the same extracted vector data. SVG opens in Inkscape, Adobe Illustrator, Affinity Designer and every modern web browser -- useful for web publishing, further editing and as a visual quality check of the extraction.

PDF to DWG: What Is Actually Possible in a Browser?

The term "PDF to DWG" describes one of the most requested but technically challenging document conversions in the CAD industry. It is important to understand precisely what is and is not achievable -- both in browser-based tools and in professional desktop software -- so you can set appropriate expectations for any conversion approach.

DWG (Drawing) is Autodesk's proprietary binary format used by AutoCAD and related products. Writing DWG files requires either the Autodesk RealDWG library (licensed from Autodesk) or the Open Design Alliance ODA File Converter (a reverse-engineered DWG implementation). Neither is available in a browser context. Our tool therefore outputs DXF (Drawing Exchange Format) -- the open standard that Autodesk designed specifically for data exchange between CAD systems. DXF files open natively in AutoCAD and can be saved as DWG from within AutoCAD in one step (File > Save As > AutoCAD Drawing).

"DXF is to DWG what HTML is to a Word document -- an open, interoperable format that every application in the ecosystem can read. AutoCAD converts DXF to DWG automatically when you save."

Vector PDFs vs Raster PDFs: The Critical Distinction

The quality of any PDF to CAD conversion depends entirely on the type of PDF you are working with. This is the most important concept to understand before attempting any PDF to DWG conversion.

PDF TypeCreated ByContainsDXF QualityUse This Tool?
Vector PDF (CAD export)AutoCAD, Revit, SolidWorks, SketchUp Print to PDFActual vector paths, lines, arcsExcellentYes -- ideal use case
Vector PDF (design tools)Illustrator, Inkscape, CorelDRAW Save as PDFVector paths and curvesVery goodYes -- works well
Text-based document PDFWord, LaTeX, InDesign exportText, some decorative pathsPartialPartial -- text extracted, layout paths may be decorative
Scanned drawing PDFScanner, multifunction printerRaster image only, no vectorsNoneNo -- no vector data to extract
Photography/image PDFPhoto scanning, iPhone scanJPEG/PNG images onlyNoneNo -- raster only, no CAD data

The fundamental reason for this distinction is that vector PDFs store drawing geometry as mathematical descriptions -- "draw a line from point A to point B", "draw an arc with this radius from this angle to that angle" -- while raster PDFs store page content as a grid of coloured pixels. Mathematical descriptions can be translated to DXF with high fidelity. Pixels cannot be converted to CAD geometry without AI-based vectorisation (which is a completely different, much more complex process).

If you have a scanned architectural drawing or a photographed technical schematic that you need in CAD format, the correct workflow is vectorisation -- either manual tracing in AutoCAD/LibreCAD using the scanned image as a background underlay, or automated vectorisation software such as Autodesk Raster Design, Scan2CAD, Vector Magic or PolyGLC.

What the DXF Output Contains

Our converter processes the PDF page content stream using PDF.js's operator list API, which provides access to every drawing operation performed when the PDF page is rendered. The following elements are extracted and converted to DXF entities:

  • Lines: PDF moveTo + lineTo sequences are converted to DXF LINE entities or LWPOLYLINE entities, depending on whether they form a single segment or a multi-vertex polyline path.
  • Rectangles: PDF rectangle operators are converted to closed LWPOLYLINE entities with four vertices, preserving exact dimensions and position.
  • Bezier curves: PDF curveTo (cubic Bezier) operators are converted to LWPOLYLINE entities with interpolated intermediate points. True Bezier curves require DXF SPLINE entities which have more complex data requirements; the interpolated polyline approach maintains good visual accuracy for most engineering curves.
  • Text: All text items from the PDF page are extracted with their position coordinates using PDF.js getTextContent() and added as DXF TEXT entities at the correct position on a TEXT layer.
  • Transform matrices: PDF save/restore and transform operators are tracked and applied to all coordinates, correctly positioning elements that were drawn within transformed coordinate spaces -- common in PDFs created from CAD applications that use drawing unit transformations.

The following elements from the PDF are not represented in the DXF output: colour fills, gradient fills, embedded raster images, transparency/opacity, text formatting (bold, italic, font family), and complex pattern fills. The DXF output captures the geometric structure of the drawing -- the lines, arcs and text positions -- rather than its visual presentation.

Opening the DXF in AutoCAD and Saving as DWG

Once you have downloaded the .dxf file from our converter, opening it in AutoCAD and converting to DWG is straightforward. In AutoCAD, use File > Open and select the .dxf file. AutoCAD opens it as a DXF document. Use File > Save As, select AutoCAD Drawing (*.dwg) as the file type, choose your target DWG version (AutoCAD 2018, 2013, 2010 etc.) and save. The file is now a native DWG file.

After opening the DXF, you will typically want to perform some cleanup operations in AutoCAD: run PURGE to remove empty layer definitions, use ZOOM EXTENTS to fit the drawing in the viewport, check the UNITS settings match your intended drawing units (millimetres, feet, etc.) and review the layer structure. The extracted geometry can then be edited, dimensioned and annotated as a standard CAD drawing.

Alternative CAD Applications That Open DXF Directly

You do not need AutoCAD to use the DXF output from our converter. Several free and open-source CAD applications open DXF files natively and can save them as DXF or other formats:

  • FreeCAD (free, open-source): Full parametric 3D CAD with excellent DXF import. Available for Windows, macOS and Linux. File > Import > select DXF format.
  • LibreCAD (free, open-source): 2D CAD application with native DXF support. Lightweight and straightforward. Ideal for 2D drawing review and editing.
  • QCAD Community Edition (free): Professional 2D CAD with good DXF R12 support. The commercial edition adds DXF R15 and DXF 2007 support.
  • BricsCAD Shape (free tier): AutoCAD-compatible CAD application with strong DXF/DWG support. Available for Windows, macOS and Linux.
  • Inkscape (free, open-source): While primarily a vector graphics editor rather than CAD software, Inkscape opens DXF files and can export to SVG, PDF and other formats. Useful for non-CAD workflows that need the vector geometry.
Got Questions?

Frequently Asked Questions

Why does the output say DXF instead of DWG?
DWG is Autodesk's proprietary binary format that requires a licensed library to write. DXF (Drawing Exchange Format) is the open interchange format designed by Autodesk specifically for this purpose -- it is readable by every CAD application including AutoCAD itself. When you open the DXF in AutoCAD and save, it becomes a DWG file. DXF is the universally compatible CAD exchange format; DWG is AutoCAD's native working format.
My extracted DXF is empty -- why?
An empty or near-empty DXF means your PDF is raster-based (scanned or image-based) rather than vector-based. Raster PDFs contain page images with no underlying vector geometry -- there are no lines, paths or curves in the PDF content stream to extract. Check whether you can select text or zoom in without pixelation in a PDF viewer. If you cannot, the PDF is raster-based and requires vectorisation software rather than a PDF-to-DXF converter.
Does the converter work with AutoCAD PDF exports?
Yes -- PDFs exported from AutoCAD using PLOT or PUBLISH to PDF are vector PDFs containing all the drawing geometry as PDF path operators. These are the ideal input for our converter. The extracted DXF will contain the lines, arcs and text from the original drawing in a form that can be edited in AutoCAD. Note that AutoCAD-specific features like blocks, attributes, dimensions and hatches are represented as flattened geometry in the PDF export, so they will appear as individual lines rather than AutoCAD block references in the DXF output.
How accurate are the coordinates in the DXF?
Coordinates are extracted with full floating-point precision from the PDF content stream. The accuracy is limited by the precision of the original PDF generation -- if the CAD application generated the PDF with full precision, the DXF coordinates will be equally precise. Scale mapping depends on your chosen scale factor setting: the "mm" option maps PDF points (1/72 inch) to millimetres, producing correctly scaled coordinates for metric engineering drawings.
Can I convert multi-page PDFs?
The tool processes one page at a time using the page selector dropdown. For multi-page PDFs with multiple drawings, select "All Pages" to generate separate DXF files for each page. For very large multi-page drawing sets, processing one page at a time gives you better control over naming and layer organisation for each drawing sheet.
Is my PDF drawing sent to your server?
No. All PDF parsing and DXF generation happens entirely inside your browser using PDF.js. No drawing coordinates, geometry data or text content is transmitted anywhere. This is critical for proprietary engineering drawings, architectural plans, patent-sensitive technical documents and confidential design work.
Why are some curved lines shown as straight segments?
PDF Bezier curves (cubic curveTo operations) are approximated as polylines with interpolated intermediate points in the DXF output. True Bezier curves require DXF SPLINE entities which have more complex structural requirements. The polyline approximation uses multiple segments to follow the curve path closely -- at typical zoom levels in AutoCAD, the difference is not visible. For applications requiring precise mathematical curve definitions, the SPLINE entity in DXF 2004 format (not R12) would be needed.

Ready to Extract Your PDF Drawing?

Drop your vector PDF above. Free, private and instantly usable in AutoCAD.

Start Extraction Now
More Tools

Related PDF and Image Conversion Tools