Hi,
Hi Rune,
Hi Bernt,
Thanks for sharing the source document. Please note your document page have rotation parameter set to 90 degrees. That’s why actual visible page size differs (height and width are “swapped”).
In order to take into consideration page rotation, we have Page.GetPageRect(bool considerRotation) method. If we pass considerRotation parameter as true then it consider rotation angle and return actual rectangle dimensions. Please check following code snippet.
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(myDir + “a1_modified.pdf”);<o:p></o:p>
foreach (Page page in doc.Pages)<o:p></o:p>
{<o:p></o:p>
Aspose.Pdf.Rectangle rect = page.GetPageRect(true);<o:p></o:p>
Console.WriteLine(“Page {0} width is {1} and heigth is {2}, rotation: {3}, size considering rotation: widht {4} : height {5}”, page.Number, page.Rect.Width, page.Rect.Height, page.Rotate.ToString(), rect.Width, rect.Height);<o:p></o:p>
}<o:p></o:p>
<o:p> </o:p>
<o:p>Please feel free to contact us for any further assistance.</o:p>
<o:p>
</o:p>
<o:p>Best Regards,</o:p>
Hi Ahmad,
Hi Brent,
Hi Ahmad,
Thanks for sharing the source PDF document. While testing the scenario with your shared document, we have managed to reproduce the issue with latest version of Aspose.Pdf for .NET 9.7.0. We have logged a ticket PDFNEWNET-37699 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,
Hi Ahmad,
Hi Bernt,
Hi Ahmad,
Hi Bernt,
Thanks
for your patience.<o:p></o:p>
As we recently have been able to notice this issue, so development team requires little time to investigate and figure out the reasons of this problem. Nevertheless, as soon as we have made some definite progress towards its resolution, we would be more than happy to update you with the status of correction.
Our humble request is to
please be patient and spare us little time.
The issues you have found earlier (filed as PDFNEWNET-37699) have been fixed in Aspose.Pdf for .NET 9.8.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
The issues you have found earlier (filed as PDFNET-37708) have been fixed in Aspose.Pdf for .NET 17.5.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.