We have been trying to use aspose pdf to find out in which angle the pdf document has been uploaded by the vendor. Sometimes the scanned pdf copy will be in upside down format,layout ,etc. We are in the requirement to find the correct angle of the file uploaded.But we could not find so. Kindly help
You can check the Rotation Property of PDF Pages in order to determine the angle. Please check below documentation section:
We need to find the angle of the pdf. Once this is done we can set the angle to the required angle as suggested by you. So help to find the angle of the input pdf
The same property can be used to find the rotation angle as well as set it. Please share your sample PDF document for our references in case there are any issues.
Please take any pdf document which is a scanned one, rotated to a particular angle(except 0) for reference and guide us.
We took a sample PDF document in which Page was rotated on 270 degree. The below code snippet returned correct value:
var doc = new Document(dataDir + "RotatedDocument.pdf"); Console.WriteLine(doc.Pages.Rotate);
flipTest.pdf (97.8 KB)
Hi , Please help with getting the rotation angle for all the pages using java in the attached pdf
We are checking it and will get back to you soon.
We have checked the document. This document does not have rotation specified neither in Page Rotation value, nor specified by transformation matrix. Images are rotated by themselves. Thus it is not feasible to detect image rotation by Aspose.PDF.