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 wrap data

Hi,
How to wrap data in pdf using syncfusion in g.drawstring() method.
Please give me practical example.

1 Reply

CM Chinnu Muniyappan Syncfusion Team May 26, 2016 10:13 AM UTC

Hi Pawan, 
Thank you for contacting Syncfusion support. 

We have created a simple sample for wrapping text in PDF document for your reference, please refer the below sample and code snippet for further details. 

Code snippet: 
            //Create a new pdf string format 
            PdfStringFormat format = new PdfStringFormat(); 
 
            //Set the wordwrap 
            format.WordWrap = PdfWordWrapType.Word; 
 
            //Draw the string 
            page.Graphics.DrawString(text, font,PdfBrushes.Black, new RectangleF(0,0, 500, 100),format); 
 
Sample link: 

Regards, 
Chinnu 


Loader.
Live Chat Icon For mobile
Up arrow icon