With DraftSight APIs , how to analyze the size of sheet ?

I wish to make a PDF export with API ExportToPdf.

Is it possible to know the size of the sheet ? And how ?

Thank you