我需要合并 2 个段落,第一个是一系列点,第二个是我想写在点上的文本:
Paragraph pdots1 = new Paragraph("......................................................................................................................",font10);
Paragraph pnote= new Paragraph("Some text on the dots", font10);
我试着玩: pnote.setExtraParagraphSpace(-15); 但这弄乱了接下来的段落。我也尝试过:itext 绝对定位文本 并且工作正常,但前提是我的 pdf 大小是固定的。所以不要解决我的问题。