b4772445610fab7d0c48d7fc4518e078836d94a2
Keep project ignore rules for Python/build outputs alongside existing repo ignores. Co-authored-by: Cursor <cursoragent@cursor.com>
PDF to DXF Converter
Windows desktop app that converts PDF drawings to DXF for BricsCAD (and other CAD software), with a live page preview. Optionally saves DWG through your installed BricsCAD.
Features
- PDF page preview with previous/next navigation
- Conversion modes: auto, vector, vectorize, raster
- True vector PDFs → editable lines/polylines/text in DXF
- Flattened / image-only drawing PDFs → traced to editable polylines (
vectorize) - Optional raster underlay mode for scans you want as images
- Optional DWG export via BricsCAD
SAVEAS
Requirements
- Windows 10/11
- Python 3.10+ (for development)
- BricsCAD (optional, only needed for DWG export)
Run from source
cd "PDF to DWG converter"
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
python main.py
Build the EXE
.\build_exe.ps1
Output (share this one file):
dist\PDF_to_DXF.exe— single EXE, no_internalfolder to copy
On first run it installs into %LOCALAPPDATA%\PDF_to_DXF\app\. Later launches reuse that install.
Share with other PCs (no Python needed)
- Send
PDF_to_DXF.exeonly - They double-click it (first run shows a short setup into AppData)
- Done
OCR language data is bundled — no separate Tesseract install.
Optional only: BricsCAD for DWG save.
Usage
- Click Open PDF… and pick a file
- Preview pages with ◀ / ▶
- Choose mode (
autorecommended), pages, and scale (1.0 = PDF size; use your own multiplier) - Click Convert & Save… — review each page (vector / image / vectorize / skip), then pick the DXF path
- Optionally enable Also save DWG via BricsCAD
Modes
| Mode | Best for | Result |
|---|---|---|
auto |
Mixed PDFs | Native vectors when present; traces image-only drawing pages |
vector |
CAD-exported PDFs | Editable geometry and text (traces if the page is only a bitmap) |
vectorize |
Flattened / printed drawing PDFs | Raster-to-vector polylines (set Trace detail to high/maximum) |
raster |
Photos / underlays | Full-page image in the DXF |
BricsCAD DWG
If BricsCAD is installed in a standard location, it is detected automatically. To override:
$env:BRICSCAD_PATH = "C:\Program Files\Bricsys\BricsCAD V25 en_US\bricscad.exe"
Notes
- DXF is the primary format; BricsCAD opens it natively.
- Scanned pages become image underlays in v1 (not commercial-grade auto-trace).
- Raster/hybrid conversions write images next to the DXF in a
*_imagesfolder — keep that folder with the DXF when moving files.
Description
Portable PDF/image to DXF converter for BricsCAD workflows
2.1 MiB
0 Stars
1 Watchers
0 Forks