I have 2 lines and I want to align (justify) them.
I have this code:
Paragraph p=new Paragraph(ANC,fontFootData);
p.setLeading(1, 1);
p.setAlignment(Element.ALIGN_JUSTIFIED);
document.add(p);
Paragraph p2=new Paragraph(RUTTEL,fontFootData);
p2.setLeading(1, 1);
p2.setAlignment(Element.ALIGN_JUSTIFIED);
document.add(p2);
where ANC and RUTTEL are string, but they not be align.
Could anybody help me?
For a one line use ALIGN_JUSTIFIED_ALL, more than one line use ALIGN_JUSTIFIED.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With