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

How to maximum number of lines in a pdf page?

Thread ID:





119311 Jun 4,2015 06:59 AM UTC Jun 9,2015 11:50 AM UTC ASP.NET Web Forms 3
Tags: PDF
Asked On June 4, 2015 06:59 AM UTC


I tried to set maximum number of lines in pdf page using syncfusion, but i dint get any code line regarding this. Please help me on this. Waiting for your suggestion.

Thanks in advance :)

Abirami Selvan [Syncfusion]
Replied On June 8, 2015 04:29 AM UTC

Hi  Ushanandhini,

If you have to set a page margins please refer the bellow code snippet

           doc.PageSettings.Margins.All = 40;

           doc.PageSettings.Size = new SizeF(512, 810);

           doc.PageSettings.Orientation = PdfPageOrientation.Portrait;

Can you please provide more information regarding your requirement, So that we will analyze in this and provide you the solution.


Replied On June 8, 2015 05:51 AM UTC

Hi Team

Thanks for your response....

I don't want to set the page size and margins.I want to set maximum number lines in a pdf page.
For eg. Consider a pdf document is having 300 lines in a page, but i want to set 50 lines per page. So that it will become 6 pages of document.

Is there anyway/any pdf page properties to set the max. no. of lines per page?. Kindly suggest some properties.

Abirami Selvan [Syncfusion]
Replied On June 9, 2015 11:50 AM UTC

Hi Ushanandhini,

Sorry for the delay response.

We are rendering  the texts in pdf document based on the positions. We draw the text using coordinates positions, so we can’t set manually the no of lines per page in pdf document. Could you please let us know the feature which you are using to create the PDF document, like PdfGrid or PdfLightTable or loading existing PDF document. Else please share the code snippet which you are using to generate the PDF document.



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

or the page will be automatically redirected to 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