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

Free Support Forum - aspose.com

PDF will be cut off after rotation

Hi,

We are using Aspose.pdf family v19.2 to rotate the PDF file. But we find the rotated PDF will be cut off.

Here’s our code, pdf file and the roated pdf file
rotate pdf.zip (378.9 KB)

Please have a check. Thanks.

@Glority_Developer

Thank you for contacting support.

We have tried to rotate the pages using below code snippet with Aspose.PDF for .NET 19.3. Please find attached the PDF document and then share your kind feedback with us. Rotate_19.3.pdf

Document doc = new Document(dataDir + "homeacrordrunified18_2018_cn.pdf");
foreach (Page page in doc.Pages)
{
    // Setting Rotation angle of page
    page.Rotate = Rotation.on90;
}
doc.Save(dataDir + "Rotate_19.3.pdf");

Thanks. It works.