Convert interactive engineering diagrams to image format, with highlighted annotations. Supported input file mime_types are application/pdf, image/jpeg, image/png, image/tiff. Supported output image formats are PNG and SVG, only the svg embeds the input annotations.
Success
The response for a failed request.
{- "items": [
- {
- "fileId": 1234,
- "annotations": [
- {
- "text": "21-PT-1019",
- "confidence": 0.5,
- "region": {
- "shape": "rectangle",
- "vertices": [
- {
- "x": 0.58,
- "y": 0.12
}, - {
- "x": 0.58,
- "y": 0.12
}, - {
- "x": 0.58,
- "y": 0.12
}, - {
- "x": 0.58,
- "y": 0.12
}
], - "page": 1
}, - "entities": [
- {
- "userDefinedField": "21PT1017",
- "ignoredField": "AA11"
}, - {
- "userDefinedField": [
- "21PT1017-A",
- "21PT1017-B"
]
}
]
}
]
}
], - "grayscale": true
}
{- "items": [
- {
- "fileId": 1234
}
], - "jobId": 123,
- "status": "Queued",
- "createdTime": 1730204346000,
- "startTime": 1730204346000,
- "statusTime": 1730204346000,
- "errorMessage": null,
- "grayscale": true
}