How to autorotate scanned PDF pages
The /pdf/makesearchable
endpoint supports PDF page rotation. To do this, please add the profiles
param below:
{
"profiles": "{ 'OCRDetectPageRotation': true }"
}
Aside from fixing the page rotation, this will turn your PDF into searchable. To convert it back to unsearchable PDF, you may use the /pdf/makeunsearchable
endpoint.
For more information, please see the API Docs here https://apidocs.pdf.co/11-pdf-make-text-searchable-or-unsearchable#post-pdfmakeunsearchable-pdf-to-scanned-pdf