phax / ph-pdf-layout

Java library for creating fluid page layouts with Apache PDFBox. Supporting multi-page tables, different page layouts etc.
Apache License 2.0
64 stars 11 forks source link

Wrong linespacing in the end of page #10

Closed RangerMak closed 4 years ago

RangerMak commented 4 years ago

Sometimes last line of page in multiline text can be rendered using wrong linespace. Examlpe: https://ibb.co/FWNRYbD

This text was added to document using code

pagesSet.addElement(new PLText(loremRus, italicBoldFont12).setLineSpacing(1.5f));

Last line was rendened with wrong linespace for fitting it into page. Another lines of text was rendered with correct linespace.

The result document looks strange in this case.

phax commented 4 years ago

That occurred only on line break.