List of usage examples for com.lowagie.text.rtf.text RtfChapter RtfChapter
public RtfChapter(RtfDocument doc, Chapter chapter)
From source file:com.ainfosec.macresponse.report.RtfGenerator.java
License:Open Source License
private static void addContent(TreeObject rootObject) { for (TreeObject treeObject : rootObject.getChildObjects()) { if (treeObject.isChecked()) { Paragraph title = new Paragraph(treeObject.getTitle(), chapterTitleFont); Chapter chapter = new Chapter(title, currentChapter); populateChapter(treeObject, chapter); document.add(new RtfChapter(document, chapter)); currentChapter++;/* w w w . j a v a 2 s .c om*/ } } }