Chart Extraction

The charts and diagrams of one PDF

Changed on

Charts with stored inputs (ready) are returned at once. The first request for a file queues a scan on a worker; while it runs, status is queued or running and only the ready charts are listed. When the scan is done, charts also lists every chart frame the scan found (found) and diagrams lists the process diagrams read on the scanned pages. Poll until status is done or failed. A scan by an older engine, or one that failed for a transient reason, is queued again on request.

get/v1/chart-to-data/pdfs/{documentId}/charts

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

documentId, string uuid required

Response

The charts of the PDF.

ChartToDataCharts required
document_id, string uuid
status, 'queued' | 'running' | 'done' | 'failed'

The state of the file's scan.

error_code, string nullable
error_message, string nullable
page_count, integer nullable

Null until the scan is done.

pages_scanned, integer

0 until the scan is done.

charts, ChartToDataFoundChart[]
pictures, object[]

Optional unread figure-sized picture diagnostics, grouped by page. Omitted when the scan has none or an older scan stored no picture diagnostics. These are not chart assets or claims.

diagrams, object[]

Changes