Hi,
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;
}
pdfPageEditor.Save(outputFilePath);
pdfPageEditor.Close();
Regards,
Rakesh