You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem seems to be that flying-soucer does not use the Paragraph of the underlying itext, but splits the text into the individual lines itself. While doing it, flying-soucer does not remove the trailing empty spaces.
A quick fix is to insert currentLine.trimTrailingSpace(c); before this call to save().
You should take 3 line in the
openhtmltopdf-core\src\main\java\com\openhtmltopdf\layout\InlineBoxing.java
https://stackoverflow.com/questions/36982586/flying-saucer-generates-pdf-with-badly-justified-text/37118310#37118310
The problem seems to be that flying-soucer does not use the Paragraph of the underlying itext, but splits the text into the individual lines itself. While doing it, flying-soucer does not remove the trailing empty spaces.
A quick fix is to insert currentLine.trimTrailingSpace(c); before this call to save().
You should take 3 line in the
openhtmltopdf-core\src\main\java\com\openhtmltopdf\layout\InlineBoxing.java
I tested and works correctly.
The text was updated successfully, but these errors were encountered: