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
- [iText-questions] Align paragraph Carlos Bergueira
- Re: [iText-questions] Align paragraph bruno
- Re: [iText-questions] Align paragraph Carlos Bergueira
- RE: [iText-questions] Align paragraph Paulo Soares
