We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Question about AutoRotate for PDFs

I am interested to know, does the API have the ability to detect and automatically rotate PDF pages so they are readable?


For example, I send the API a PDF of five scanned pages.

Page 1: Correct orientation
Page 2: Upside down
Page 3: Upside down
Page 4: Correct orientation
Page 5: 90 degrees clockwise

Does the API have the capability to identify pages 2, 3, and 5 as out of orientation and then accordingly rotate them to match the orientation of pages 1 and 4?

Thank you.

Hi Joseph,


Thanks for your inquiry. Please note we have a class PdfViewer used for printing PDF document, it has AutoRotate Boolean property to adjust rotation. You may use it and print PDF with rotation settings. If there is difference in your requirement and my understanding then please share your sample document, so we will look into it and guide you accordingly.

Moreover, you can also get rotation details of PDF page and set as per your requirement using API. Please check following documentation link for the details.


Please feel free to contact us for any further assistance.

Best Regards,