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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

WordWrap with ParagraphIndent

Thread ID:





103679 May 24,2012 08:19 AM UTC Jun 6,2012 04:27 AM UTC ASP.NET Web Forms (Classic) 3
Tags: PDF
Asked On May 24, 2012 08:19 AM UTC

I've tried to use Syncfusion PDF product and print text, but we want to print running text with different fonts. What is the best solution for this?

For now we print the first text (text1) and then uses the LastLineBounds in the PdfTextLayoutResult to get the width, we then print the second text (text2) with another font and use the ParagraphIndent in to start text2 where text1 ends. This works but we dont want to clip word in text2 if the word i to long in the indentend line, so we specify PdfWordWrapType.WordOnly, but if the word has to be clipped (because there is no space left), the whole text2 dissapears from page. If we specify PdfWordWrapType.Word it clips the first word and text2 is visible again.

Geetha M [Syncfusion]
Replied On May 25, 2012 05:34 AM UTC

Hi Kim,

Thank you for your interest in Syncfusion products.

I am afraid that I am not able to reproduce the problem. I created a simple sample to test the word wrap and it works fine. I had placed the sample in the link below. Could you please modify this sample and send back to me?




Replied On June 4, 2012 01:17 PM UTC

Thanks for reply! I just changed the test-text to reproduce it, see the attachment


Geetha M [Syncfusion]
Replied On June 6, 2012 04:27 AM UTC

Hi Kim,

Thank you for the details.

I was able to see the problem with your sample. With current implementation, the PdfWordWrapType.WordOnly won't wrap the word going out of bounds and the process will be finished. As far as PdfWordWrapType.Word, the text will be wrapped by words and if a word is longer than the bounds, it will be wrapped by characters. However, could you please create a direct trac incident with details so that we will consider it as a feature request?




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

Live Chat Icon For mobile
Live Chat Icon