We have noticed that when TextFragments are rotated, line wrapping does not work correctly. Code example below.
@Test
public void test_text_rotation() throws Exception {
final Document document = new Document();
final String text = "fizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzzfizzbuzz";
final TextFragment textFragment = new TextFragment(text);
textFragment.setPosition(new Position(100, 100));
textFragment.getTextState().setRotation(90.0);
final Page page = document.getPages().add();
page.getParagraphs().add(textFragment);
document.save("../test.pdf");
}