Page.PageInfo is not Filled out Correctly when Loading a PDF

Hello Aspose,

if loading a PDF page in landscape the PageInfo is not filled pout correctly:
PageRotationTest.pdf (4.4 KB)

            Document doc = new Document(@"c:\temp\PageRotationTest.pdf");
            Console.WriteLine("Landscape: {0}, Width: {1}, Height: {2}",
                              doc.Pages[1].PageInfo.IsLandscape, 
                              doc.Pages[1].PageInfo.Width,
                              doc.Pages[1].PageInfo.Height);

I get obviously wrong results in console:
Landscape: False, Width: 595, Height: 842

Regards
Gerd

@Gerd

Please try to get page dimensions for existing PDF document as below:

page.GetPageRect(true).Width;
page.GetPageRect(true).Height;

The properties you are using are only for PDF generation process.

Thank you for clarification.