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

How to maximum number of lines in a pdf page?


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 :)

3 Replies

AS Abirami Selvan Syncfusion Team 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.


US Ushanandhini 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.

AS Abirami Selvan Syncfusion Team 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.


Live Chat Icon For mobile
Up arrow icon