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.
Unfortunately, activation email could not send to your email. Please try again.

how to wrap data

Thread ID:

Created:

Updated:

Platform:

Replies:

124220 May 25,2016 04:19 AM May 26,2016 06:13 AM UWP 1
loading
Tags: Pdf
pawan chaudhari
Asked On May 25, 2016 04:19 AM

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

Chinnu Muniyappan [Syncfusion]
Replied On May 26, 2016 06:13 AM

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 


CONFIRMATION

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.

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.

;