Parameters
key | value | description |
---|---|---|
type (required) | rotatePage | |
match | Match object or array of Match objects | Sensible rotates the page to ensure that text that matches this parameter is horizontal. Sensible rotates the page by multiples of 90 degrees. If the page is affected by translation, shear, or other affine transformations, or if the page rotation isn’t a multiple of 90 degrees, use the Deskew preprocessor. |
matchAll | boolean | If true, rotates all pages containing the line specified by the Match parameter. |
Examples
The following image shows that without the Rotate page preprocessor, extraction from a rotated document fails. The Region method returns null, because the targeted text isn’t in the expected region:
JSON

Example document | Download link |
---|
JSON