I am trying add two Chunks of text on a same line with first chunk being
aligned CENTER and next chunk aligned RIGHT.  I tried following cases ():
1-) Paragrapgh p1 = new Paragraph("Align me Center");
    p1.setAlignment(element.ALIGN_CENTER);
   Paragrapgh p2 = new Paragraph("Align me Right");
   p2.setAlignment(element.ALIGN_RIGHT);
   p1.add(p2);

OutPut:
                                       Alignme CenterAlign me Right


2) Paragrapgh p1 = new Paragraph("Align me Center");
    p1.setAlignment(element.ALIGN_CENTER);
Paragrapgh p2 = new Paragraph("Align me Right");
p2.setLeading(300);
p1.add(p2);

OutPut:
                                       Alignme CenterAlign me Right

How can I make it look like this:
                                       Alignme Center                           
           
Align me Right
-- 
View this message in context: 
http://www.nabble.com/Paragraph-text-spacing-tf1981528.html#a5437890
Sent from the iText - General forum at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to