I generated a chapter and a section that gives me this: 1.1 Section 1: School-Level Environment Questionnaire The first part of the questionnaire
I want to align the title text "Section 1:..." with the text underneath "The first part of the..." I know I can set the indent value of the section, but I want to set it automatically so it aligns with the first letter of the section title. At the moment I have to test it with different values to find the best ident value: Paragraph section1title = new Paragraph("Section 1: School-Level Environment Questionnaire"); Section section1 = chapter1.addSection(section1title, 2); section1.setNumberStyle(Section.NUMBERSTYLE_DOTTED_WITHOUT_FINAL_DOT); *section1.setIndentation(20.f);* Paragraph section1para1 = new Paragraph("The first part of the questionnaire"); section1para1.setAlignment(Element.ALIGN_JUSTIFIED); section1para1.setSpacingBefore(18.f); section1.add(section1para1); ... I tried to set the indent of the section title, but it indents the whole thing, the number "1.1" and the title "Section 1:.." Thanks Fred
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/