PDF to DXF
Extract the vector lines, curves and text of a PDF drawing into a DXF file, with layers by colour and a real-world scale from the drawing scale or a known length.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Open the PDF
Load the vector drawing.
- 2Set the scale
Drawing scale, known length or points.
- 3Choose layers
One layer per colour, or everything on layer 0.
- 4Text and curves
Include text and set curve smoothness.
- 5Pick pages
All pages or a range.
- 6Convert
Press Convert to DXF and open the file in CAD.
About this tool
Architects, engineers and fabricators often receive drawings only as PDF, while their work happens in CAD. Redrawing a plan from scratch takes hours. If the PDF was exported from CAD software, its lines are still vectors inside the file, and they can be brought back into CAD. This converter reads the drawing instructions of each page and writes them to a DXF file: straight lines and curves become polylines, each stroke colour gets its own layer, and text becomes CAD text. Because PDFs lose the real-world scale, you set it from the drawing scale printed on the sheet, such as 1:100, or from one dimension you know, so the DXF measures correctly in millimetres.
What is converted
- Paths: lines, rectangles and Bézier curves, which are flattened into short line segments (the smoothness setting controls how many). - Closed shapes as closed polylines. - Text as TEXT entities with height and rotation. - Layers named by colour, such as C_FF0000 for red lines, so you can switch groups on and off in CAD.
Setting the scale
PDF coordinates are in points (1/72 inch). The DXF is written in millimetres: - **Drawing scale**: for a plan printed at 1:100, every point becomes 0.3528 mm × 100. - **Known length**: measure a dimension in the PDF with a measure tool (in points), type it and its real length, and everything is scaled to match. - **Keep points**: for artwork and logos that have no real-world scale.
Opening the DXF
The file uses the classic R12 ASCII format, which AutoCAD, LibreCAD, QCAD, DraftSight, FreeCAD, Inkscape, laser-cutter and CNC software all read. Each page becomes its own DXF.
Good candidates
- Floor plans, sections and site plans exported from CAD. - Engineering and electrical drawings. - Logos and outlines for laser cutting and vinyl plotting.
Poor candidates
Scanned drawings are pictures with no vectors; they need tracing instead. PDFs printed from CAD as images, or flattened, contain no lines to extract.
Checking in CAD
After opening, set your CAD units to millimetres and measure a dimension printed on the drawing. If it is off by a constant factor, scale the whole drawing by that factor.
Limits
Hatches arrive as many small lines, dimension objects become plain lines and text, and fonts are not kept. Curves are approximated by segments. Always check a dimension in CAD after importing. This is a conversion aid, not a substitute for the original CAD file.
Worked example
An A3 site plan exported from CAD at 1:200 becomes a DXF with 3,412 polylines on 6 colour layers and 148 text entities; in LibreCAD the 40 m boundary measures 40,000 mm, so the surveyor can start work without redrawing.
Quick facts
- Category: Convert from PDF
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Autodesk DXF Reference (R12 ASCII entities POLYLINE, VERTEX, TEXT)
Frequently asked questions
Will my scanned plan convert?
No. A scan is a picture without vector lines. Only PDFs exported from CAD or design software contain lines to extract.
How do I get the right scale?
Enter the drawing scale, such as 1:100, or a known length measured in the PDF and its real value.
Which CAD programs open the file?
AutoCAD, LibreCAD, QCAD, DraftSight, FreeCAD and most laser and CNC software, because it uses the R12 ASCII format.
Are layers kept?
PDFs do not store CAD layers; the converter creates one layer per line colour.
Are curves exact?
They are approximated with short segments; increase smoothness for finer curves.
Is my drawing uploaded?
No. It is converted in your browser.
