Line break is present in the middle of words

Hi Team,

Issue: Line break is present in the middle of words within the report​. And this is happening with Aspose version of “19.1​”. ​

The text entered by the user is as below. Please check the attachment UserEnteredText.jpg.
But when the report got generated using Aspose version of "19.1"​ we see that the line break is present in the middle of words​. Please check the attachment PDFReport​.jpg.​

Kindly help to resolve this issue.
UserEnteredText.JPG (32.6 KB)
PDFReport.JPG (29.3 KB)

Thanks & Regards,
Manmohan Kumar B

@aparnabn

Could you please test your scenario using Aspose.PDF for .NET 19.4 and in case you still face issue, please share complete sample code snippet and a bit more details about the scenario. We will test it in our environment and address it accordingly.

Hi Asad ,
We are still facing the issue after upgrading to 19.4 . As you see in previous example line breaks are getting inserted in between words as a result the words are getting split at the end of the line . This issue is clearly introduced after upgrading to Aspose 19.1 from 18.4 .
To give a brief on the functionality we use input text from our control to get it displayed in pdf report and since this control is a rich text editor we pull the html tags along with the text for displaying in pdf report .
We then use below code to get the text displayed in pdf

page.Paragraphs.Add(new HtmlFragment(htmltext))

where html text = "

</font><p style="margin: 0in 0in 0pt;"><span style="color: rgb(31, 73, 125);"><font face="Calibri" size="3">&nbsp;</font></span></p><font face="Times New Roman" size="3">

</font><p style="margin: 0in 0in 0pt;"><span style="color: rgb(31, 73, 125);"><font face="Calibri" size="3">To resolve this I copied the
entire text (not code view) from summernote and pasted into word.</font></span></p><font face="Times New Roman" size="3">

</font><p style="margin: 0in 0in 0pt;"><span style="color: rgb(31, 73, 125);"><font face="Calibri" size="3">I then copy / pasted from word
back into summernote, see corrected text file attached.</font></span></p><font face="Times New Roman" size="3">

</font><p style="margin: 0in 0in 0pt;"><span style="color: rgb(31, 73, 125);"><font face="Calibri" size="3">&nbsp;</font></span></p><font face="Times New Roman" size="3">

</font><p style="margin: 0in 0in 0pt;"><span style="color: rgb(31, 73, 125);"><font face="Calibri" size="3">Now the report is successfully
generating with the table including column and row spans.</font></span></p><p style="margin: 0in 0in 0pt;"><span style="color: rgb(31, 73, 125);"><font face="Calibri" size="3"><br></font></span></p><p style="margin: 0in 0in 0pt;"><span style="color: rgb(31, 73, 125);"><font face="Calibri" size="3">The analysis had not taken the hydration of the sample into account when preparing the solution. He had prepared a 0.83 g solutionin in 25.0 mL instead of a 1.57 g in 25.0 mL . Due to the incorrect concentration of sample solution prepared the anlaysis in invalid</font></span></p><p style="margin: 0in 0in 0pt;"><span style="color: rgb(31, 73, 125);"><font face="Calibri" size="3"><br></font></span></p><p style="margin: 0in 0in 0pt;"><span style="color: rgb(31, 73, 125);"><font face="Calibri" size="3">He had prepared a 0.83 g solution in 25.0 mL instead of a 1,57 g in 25.0 mL . Due to the incorrect concentration of sample solution prepared,</font></span></p><p style="margin: 0in 0in 0pt;"><span style="color: rgb(31, 73, 125);"><font face="Calibri" size="3">then analaysis is invalid<br></font></span></p><font face="Times New Roman" size="3">

</font> "

Let us know if you need any other information from us

aspose example text.zip (669 Bytes)
Attaching the example html text from the rich text editor

aparnabn

Thanks for sharing these details.

We were able to replicate the issue in our environment while using Aspose.PDF for .NET 19.4. We have logged it as regression under the ticket ID PDFNET-46332 in our issue tracking system. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFNET-46332) have been fixed in Aspose.PDF for .NET 19.5.