Now all I want to do is align my header. In Chapter 2 (Chunks, Phrases and Paragraphs), it says that I can align paragraphs but I didn't see any details on how do it nor did I see any examples. However, by looking at the JavaDoc for Paragraph I thought I figured it out. The code runs bit doesn't do the alighment. Here's my code sample:
. . . // step 3: we add a header Paragraph headerText = new Paragraph("Company Overall Detail Report" , FontFactory.getFont(FontFactory.HELVETICA_BOLD,18)); headerText.setAlignment(Element.ALIGN_CENTER); HeaderFooter header = new HeaderFooter(headerText, false); header.setBorder(Rectangle.NO_BORDER); document.setHeader(header); // step 4: we open the document document.open(); // step 5: we add a paragraph to the document document.add(new Paragraph("Hello World")); // step 6: we close the document document.close(); System.out.println("done"); ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions