Wednesday, 28 August 2013

How to provide alignment to chunk or phrases in itext?

How to provide alignment to chunk or phrases in itext?

In my case, i have two chunks,added in phrases and and then in paragraph.
following are the my loc.
Chunk reportTitle= new Chunk("Candidate Login Report ",catFont);
Chunk divisiontitle = new Chunk("Division : \t\t"+divisionName);
Phrase phrase = new Phrase();
phrase.add(reportTitle);
phrase.add(divisiontitle);
Paragraph para = new Paragraph();
para.add(phrase);
i have to set chunk divisiontitle to right aligned.is there any provision
to do this in itext.if it possible let me know the solution.Thanx in
advance.

No comments:

Post a Comment