Retrieve Processed Document
Before Gini tries to extract the information, it preprocesses the document, performing page deskewing or homography transformation. The processed document can be retrieved by a GET
request:
Request
Path parameters
Name | Value |
---|---|
| Document ID |
//retrieve the processed document
GET /documents/{id}/processed
Response
Headers
Status Code | Description |
---|---|
200 (OK) | Operation is successful. |
Body
The version of the uploaded document file after preprocessing (color corrected, deskewed) which is used for all layout and semantic extractions. In the case of native PDF documents, it is identical to the original document file.
Errors
Status Code | Description |
---|---|
404 (Not Found) | The requested document does not exist. |