use of com.itextpdf.text.Paragraph in project saga by timurstrekalov.
the class PdfReporter method addContent.
private void addContent(final TestRunCoverageStatistics runStats) throws DocumentException {
final Paragraph title = new Paragraph(runStats.title, FONT_H1);
title.setIndentationLeft(PADDING_LEFT);
document.add(title);
document.add(createTable(runStats));
document.add(createFooter());
}
use of com.itextpdf.text.Paragraph in project saga by timurstrekalov.
the class PdfReporter method createFooter.
private Element createFooter() {
final Paragraph footer = new Paragraph();
footer.add(new Phrase("Generated using ", FONT_FOOTER));
final Anchor a = new Anchor(config.getProperty("app.name"), FONT_FOOTER);
a.setReference("http://timurstrekalov.github.com/saga/");
footer.add(a);
footer.add(new Phrase(" version " + config.getProperty("app.version"), FONT_FOOTER));
footer.setAlignment(Element.ALIGN_RIGHT);
return footer;
}
Aggregations