Is there any way to get the page dimension?

Hi, I have some trouble with the page coordinate start with top-left and have no way to know what coordinate is the bottom-left cause i cant find any way to get the page dimension. Hope you gonna


4 Replies

BS Bharathi Selvam Syncfusion Team November 14, 2025 03:04 PM UTC

Hi Nguyen Thinh,

Thank you for reaching out.

In the .NET MAUI PDF Viewer, there is no direct API to retrieve page dimensions such as width and height. However, you can determine the page size using the PdfLoadedDocument API from the Syncfusion PDF library.

Please refer to the following code snippet to get the dimensions of the first page:

// Load the PDF

PdfLoadedDocument loadedDocument = new PdfLoadedDocument(stream);

 

// Get the first page size

var pageSize = loadedDocument.Pages[0].Size;

double width = pageSize.Width;

double height = pageSize.Height;


To get the dimensions of all pages, you can iterate through the Pages collection using a loop and access each page’s size.

Please let us know if you need any further assistance.

Regards,

Bharathi S



CH ChloeRamirez November 18, 2025 05:27 PM UTC

Thank you for answering, I will try it.



BS Bharathi Selvam Syncfusion Team November 19, 2025 10:53 AM UTC

Hi ChloeRamirez,

Thank you for the update. Please feel free to reach out if you have any further questions or require assistance.

Regards,

Bharathi S



CH ChloeRamirez December 1, 2025 05:05 AM UTC

Thank you.


Loader.
Up arrow icon