I am trying to get the rotation degree of a scanned pdf page using PdfPageEditor. After reading a lot of answers on aspose forum, here is what I tried.
Since you cannot get the rotation(orientation) of scanned PDF image directly, I used the workaround mentioned here (https://forum.aspose.com/t/check-orientation-of-a-scanned-pdf-document/76125/3). I used Aspose.OCR to convert the page to Searchable PDF page.
But after OCR’ing the page I could only read image or text using ocrEngine object. So as mentioned here (https://forum.aspose.com/t/pdf-to-searchable-pdf-mantaining-original-format/1996), the workaround for this is to create searchable PDF of off text read from previous step.
But if the PDF is rotated to say 90 degree, the searchable PDF comes as all gibberish. In order to avoid this I used FloatBox instead as mentioned here (https://forum.aspose.com/t/add-rotated-text-to-existing-pdf/95132) to create the searchable PDF, as a result it brings the text but no orientation from original pdf.
So, I can’t use this searchable PDF to get the orientation of the original PDF.
Is there an easier way to achieve this.