phax / ph-pdf-layout

Java library for creating fluid page layouts with Apache PDFBox. Supporting multi-page tables, different page layouts etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong linespacing in the end of page

RangerMak opened this issue · comments

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.

That occurred only on line break.