Paragraph paragraph3 = new Paragraph();
        paragraph3.setAlignment(Element.ALIGN_LEFT);
        document.add(new Paragraph(new Phrase("Left...", red))); 

What happened to paragraph3? 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Carlos Bergueira
> Sent: Tuesday, January 17, 2006 11:24 AM
> To: [email protected]
> Subject: [iText-questions] Align paragraph
> 
> 
> Hi All,
> 
> Do am I doing things right ?
> Font, color is ok... but align is not working !
> 
> Could onyone tell me if I am doing things like it should be ?
> 
> Thanks.
> 
> Code:
> 
>         Font blue = 
> FontFactory.getFont(FontFactory.HELVETICA, Font.DEFAULTSIZE, 
> Font.ITALIC, new Color(0x00, 0x00, 0xFF));
>         Font red = FontFactory.getFont(FontFactory.HELVETICA, 
> Font.DEFAULTSIZE, Font.BOLD, new Color(0xFF, 0x00, 0x00)); 
>         Font orange = 
> FontFactory.getFont(FontFactory.HELVETICA, Font.DEFAULTSIZE, 
> Font.ITALIC, new Color(0xFF, 0x66, 0x00));
> 
>         Paragraph paragraph1 = new Paragraph();
>         paragraph1.setAlignment(Element.ALIGN_CENTER );
>         document.add(new Paragraph(new Phrase("* Centered 
> title *", orange)));
> 
>         Paragraph paragraph2 = new Paragraph();
>         paragraph2.setAlignment(Element.ALIGN_RIGHT);
>         document.add (new Paragraph(new Phrase("Right...", blue)));
>         
>         Paragraph paragraph3 = new Paragraph();
>         paragraph3.setAlignment(Element.ALIGN_LEFT);
>         document.add(new Paragraph(new Phrase("Left...", red))); 
> 
> -- 
> Cumprts,
> Carlos Bergueira 
> 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to