Hi 

When I used following code to add myText to the PDF , it works properly with
Justified allignement

                        Paragraph para = new Paragraph(myText,Font) ;
                        para.setAlignment(Element.ALIGN_JUSTIFIED);
                        Document.add(para); 


But when I add line para.setKeepTogether(true) (code is below) ,then the
myText is keep together in the PDF but it does not get Aligned (i.e in this
case setAlignment is not working). 

                        Paragraph para = new Paragraph(myText,Font) ;
                        para.setKeepTogether(true);
                        para.setAlignment(Element.ALIGN_JUSTIFIED);
                        Document.add(para); 


Please suggest me what I am doing wrong..

Thx and regards 

Manohar


        





-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to