Free Support Forum - aspose.com

Where is ActualRect?

The documentation for Page.Rect says:

To get page rectangle considering rotation please use ActualRect.

Where is ActualRect? What object is it on? Is it a property or a method?

@jamiekitson

There is no such property or method with the name of ActualRect. However, thanks for bringing this into account. We will further improve the documentation and remove this so that it cannot create any confusion in future. We apologize for the confusion caused.

So what do we use to get the page bounds accounting for rotation?

@peter0302

The method Page.GetPageRect(bool considerRotation) can be used for the purpose. If considerRotation = true, then rectangle will be modified using rotation matrix.

Oh great thank you!