Convert a drawing PDF between metric and imperial
convert_drawing_pdfConvert technical drawing PDFs between metric and imperial units by stamping converted values over original callouts. Supports dimensions, tolerances, threads, and more while preserving layout.
Instructions
Produce a converted copy of a technical-drawing PDF with every recognised value stamped in place (white cover over the original callout, converted text in matching size/rotation) — dimensions, ± tolerances, fit classes, Ø/R callouts, threads. The input file is never modified. Without classifications, a heuristic converts unambiguous callouts plus (by default) bare numbers as lengths; for full control call extract_drawing_text first and pass per-token classifications. Requires a PDF with a text layer — scanned drawings need the web app (https://metric-to-imperial-converter.imnoo.com). Converted values are stamped over the original callouts. Verify safety-critical dimensions before manufacturing use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page to convert (default 1); other pages pass through unchanged | |
| overwrite | No | allow replacing an existing output file | |
| input_path | Yes | path to the source drawing PDF (read-only) | |
| output_path | No | where to write the converted PDF (default: next to the input as <name>.<target>.pdf) | |
| bare_numbers | No | heuristic mode only — 'convert' (default) treats bare numbers as lengths (year-like and id-like integers excluded); 'skip' converts only unambiguous callouts | |
| source_system | No | unit system of the source drawing (default auto-detect from its text) | |
| target_system | No | default: the opposite of the source system | |
| classifications | No | authoritative per-token classification: when provided, ONLY listed tokens (minus skips) are converted |