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

Free Support Forum - aspose.com

Problem in PDF rotation with Aspose PDF Editor


I am not able to rotate PDF document with Aspose PDF Editor.

My document size is 14 X 8.5 and this is scanned document.

I have also attached the PDF document that can be tested with below code.

Attachment File Name: Not Working - 14 by 8.5.pdf

Code (Clock wise):

string inputFilePath="";
string outputFilePath = “”;

Aspose.Pdf.Facades.PdfPageEditor pdfPageEditor = new Aspose.Pdf.Facades.PdfPageEditor(new Aspose.Pdf.Document(filePath));
rotateAngle = pdfPageEditor.GetPageRotation(1);

if (rotateAngle == 0)
pdfPageEditor.Rotation = 90;
else if (rotateAngle == 90)
pdfPageEditor.Rotation = 180;
else if (rotateAngle == 180)
pdfPageEditor.Rotation = 270;
else if (rotateAngle == 270)
pdfPageEditor.Rotation = 0;


Hi Rakesh,

Thanks for your inquiry. While testing the scenario with your shared document, we have managed to reproduce the issue with latest version of Aspose.Pdf for .NET 9.6.0. We have logged a ticket PDFNEWNET-37550 in our issue tracking system for further investigation and resolution. We will notify you as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan