We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text still not wrapping correctly even in 9.6.0 version

In the list of BUG fixes for version 9.6.0, it was stated that a known set of bugs around text search and replace has been resolved. Unfortunately, that is not the case.


Sample code:
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf(“Policy.pdf”);
editor.ReplaceText("{FirstName}", “Jim Marvel”);
editor.ReplaceText("{SomethingWorthInsuring}",
“very expensive building at 100 E. Randolph St, Chicago, IL 60604”);
editor.ReplaceText("{SomeDate}", DateTime.Today.AddMonths(3).ToShortDateString());
editor.ReplaceText("{YourSupportTeam}", “Property Insurance Team”);
editor.Save(“PolicyAnew.pdf”);
Sample PDF file attached as well.

The text gets replaced, but the paragraph does not expand to accommodate the change, The second text remains in its original place.

One more thing, shorter strings will not force the paragraph to recompose either. If the second replacement string would be just the word “building”, there will be a huge gap in thext, and the comma will be on top (or behind) the letter “g”.

Hi there,

Thanks for your inquiry. While testing the scenario with your shared document, we have managed to reproduce the issue with latest version of Aspsoe.Pdf for .NET 9.6.0 either replacing text with small or large text. We have logged a ticket PDFNEWNET-37499 in our issue tracking system for further investigation and resolution. We will notify you as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as PDFNEWNET-37499) have been fixed in Aspose.Pdf for .NET 9.8.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.