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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PDF Table with variable page height

Thread ID:





90191 Sep 21,2009 05:02 PM UTC Sep 22,2009 12:03 PM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
Jeremy Hinkle
Asked On September 21, 2009 05:02 PM UTC

I am trying to generate a PDF document from a table of data using the PdfLightTable.

Everything works fine, except on the first n pages I need the table to render with a smaller height so I can insert extra footer data on those first pages.

How can I adjust the table height on a per page basis?

Thiruvenkadam E [Syncfusion]
Replied On September 22, 2009 12:03 PM UTC

Hi Jeremy

Thank you for your interest in Syncfusion products.

PDF Table with variable page height

We can able to create a PDF Table with variable page height by using BeginPageLayout event handler.

Kindly refer the below code snippet.

void table_BeginPageLayout(object sender, BeginPageLayoutEventArgs e)
if (document.Pages.IndexOf(e.Page) <= 2)
e.Bounds = new RectangleF(10, 10, 100, 200);
else if ((document.Pages.IndexOf(e.Page) >= 2) && (document.Pages.IndexOf(e.Page) <= 4))
e.Bounds = new RectangleF(10, 10, 100, 100);
e.Bounds = new RectangleF(10, 10, 400, 500);

Could you please find the sample from the below location and let me know if this helps,




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon