convert_vector_pdf_to_dxf
Convert vector PDF civil engineering plans into layered DXF drawings and calibrate drawing scale from reference dimensions or title-block scale for accurate CAD takeoffs.
Instructions
[v0.3 Tool 9] Convert a vector PDF civil engineering plan into a layered DXF drawing via AutoCAD
Core Console (`_-PDFIMPORT`) and automatically calibrate `recommended_scale_factor_to_meters`
from reference dimensions, explicit scale denominator, or title-block scale text ('M=1:250').
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pdf_path": "<pdf_path>"
},
"name": "convert_vector_pdf_to_dxf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdf_path | Yes | Absolute path to the vector PDF plan (or already imported DXF) to convert and calibrate. | |
| page_number | No | 1-based PDF page number to import. | |
| output_dxf_path | No | Optional output DXF path. Defaults to system temp cache. | |
| pdf_import_base_unit | No | Base unit produced by PDF import (AutoCAD _-PDFIMPORT defaults to 'inch' = 0.0254m). | inch |
| reference_cad_length | No | Optional measured CAD length of a known dimension line for exact calibration. | |
| reference_real_meters | No | Optional real-world length in meters corresponding to `reference_cad_length`. | |
| paper_scale_denominator | No | Optional explicit paper scale denominator (e.g., 250 for 1:250, 500 for 1:500). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| warnings | No | ||
| page_number | No | ||
| error_message | No | ||
| output_dxf_path | No | ||
| source_pdf_path | Yes | ||
| converter_backend | No | NONE | |
| calibration_method | No | DEFAULT_UNSCALED | |
| extracted_layer_count | No | ||
| extracted_entity_count | No | ||
| detected_scale_ratio_text | No | Scale ratio text found in title block or drawing annotations (e.g., '1:250', '1:500'). | |
| recommended_scale_factor_to_meters | No | Multiplier to pass as `custom_scale_to_meter` to `measure_linear_and_area_features`. |