Example usage for com.lowagie.text.rtf.text RtfChapter RtfChapter

List of usage examples for com.lowagie.text.rtf.text RtfChapter RtfChapter

Introduction

In this page you can find the example usage for com.lowagie.text.rtf.text RtfChapter RtfChapter.

Prototype

public RtfChapter(RtfDocument doc, Chapter chapter) 

Source Link

Document

Constructs a RtfChapter for a given Chapter

Usage

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*/
        }
    }
}