Core Layout: Text in PDF does not wrap appropriately (Text elements inside Paragraph)
Background
In release 7.2.5 of the iText Core library we’ve introduced a fix in relation to how word wrapping is handled.
In borderline cases, for example when text elements contained in a Paragraph have a single character space at the beginning or end of lines, older versions of iText would fail to break/wrap appropriately.
Example Code:
As a highlighted example, below is a snippet of iText code to create a simple Text element contained in a Paragraph.
In older versions, the code above would fail to wrap the line properly:
However, in version 7.2.5 the above behaviour has been fixed and the line is now wrapped correctly: