We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

PdfLightTable get/calculate Table height on page

I am working with the PdfLightTable to produce an Order Summary, I know, or can calculate the heights of the other lines on the page, but I have an items table that I need to find the height of.  I do not see a property that will return the printed height.
Can you please aid me with this issue?

Attached is a simple example produced using the your tools.

Thankyou in advance for your support;


Attachment: displayPDF_7f4206e1.zip

1 Reply

CM Chinnu Muniyappan Syncfusion Team August 4, 2016 05:12 AM UTC

Hi Bruce, 

Thank you for contacting Syncfusion support. 

PdfLayoutResult helps to find the light table heights and the page rendering bounds. Please find the below code snippet and KB documentation for more details. 

1.Current table height 
            //Draws PdfLightTable 
            PdfLayoutResult result = pdfLightTable.Draw(page, new PointF(10, 10)); 
            //Get the table height 
            float tableHeight = result.Bounds.Height; 
2.Page rendering height: 
            //Get the current page rendering height 
            float height = result.Bounds.Bottom; 

Please let us know if you have any concern. 


Live Chat Icon For mobile
Up arrow icon