I've added Chunks in a Document object
Document document = new Document();
document.add(new Chunk("This is a text"));
document.add(new Chunk("This is another text"));
document.close();
I tried to use the setAlignment(Element.ALIGN_JUSTIFIED) method but it looks like it works for paragraph only.
How can we justify the document object here?