Obtain Height and Width on each Page

Thanks at advance.

I am looking for methos to obtain Pages on DocumentEditor and evaluate Width and Height or on default PageSize.

How I do this?




1 Reply

SM Suriya Murugan Syncfusion Team July 21, 2022 07:24 AM UTC

Hi Alfredo,


Please check below documentation for reference:


https://ej2.syncfusion.com/documentation/document-editor/section-format/#page-size

If you were using Documenteditor container, please use below code snippet to get page width and height( which is in points):

let pageWidth=container.documentEditor.selection.sectionFormat.pageWidth;
let pageHeight=container.documentEditor.selection.sectionFormat.pageHeight


Please let us know if you need any further assistance.


Regards,

Suriya M.


Loader.
Up arrow icon