catia_drawing_export_pdf
Export a CATIA drawing to vector PDF, verify page size matches sheet dimensions, and return path, bytes, and match status. Overwrites existing PDF.
Instructions
Export the drawing to a vector PDF (DrawingDocument.ExportData). Checks the file exists and, when PyMuPDF is installed, that the PDF page equals the sheet (mm). Returns JSON {path, bytes, page_mm, sheet_mm, page_matches_sheet}. Overwrites an existing file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path ending in .pdf. | |
| drawing | No | Name of the CATDrawing document (default: the active document). |