Convert a PDF drawing to DXF at true scale
pdf_to_dxfConvert a PDF drawing to DXF at true scale. Reads a vector PDF drawing page with pdf.js and writes DXF R12 in real millimetres: lines, true arcs and circles (Béziers fitted back), rotated text, layers by colour and pen width. The scale is the one printed on the sheet when the drawing's own dimension numbers confirm it, else the standard scale most dimensions agree with, else 1:1; the answer says how it was found and which dimensions agree. Returns drawing.dxf, drawing.svg and the facts (scale, counts, size in mm, reopen check). Same engine as the PDF to DXF page. Use when: An agent has a PDF plan or part drawing (exported from CAD) and needs it as DXF for CAD, CAM or a laser at real size. Not for: Scanned drawings (answered scanned_page; the web page traces scans); DWG output; 3D. File types: pdf. Max 30 MB.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pdf_to_dxf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Tool options, if any (see the tool description). | |
| file_url | No | Public https URL of the file (preferred). | |
| filename | No | File name with its extension, e.g. part.step. | |
| file_base64 | No | The file as base64, for small files without a URL (give filename too). |