Search in sources :

Example 66 with Paragraph

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());
}
Also used : Paragraph(com.itextpdf.text.Paragraph)

Example 67 with Paragraph

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;
}
Also used : Anchor(com.itextpdf.text.Anchor) Phrase(com.itextpdf.text.Phrase) Paragraph(com.itextpdf.text.Paragraph)

Aggregations

Paragraph (com.itextpdf.text.Paragraph)67 Chapter (com.itextpdf.text.Chapter)25 PdfPTable (com.itextpdf.text.pdf.PdfPTable)18 Phrase (com.itextpdf.text.Phrase)14 PdfPCell (com.itextpdf.text.pdf.PdfPCell)13 Font (com.itextpdf.text.Font)11 IOException (java.io.IOException)11 DocumentException (com.itextpdf.text.DocumentException)10 Section (com.itextpdf.text.Section)10 Document (com.itextpdf.text.Document)8 ArrayList (java.util.ArrayList)8 ListItem (com.itextpdf.text.ListItem)7 BaseFont (com.itextpdf.text.pdf.BaseFont)7 FileOutputStream (java.io.FileOutputStream)7 List (com.itextpdf.text.List)6 Chunk (com.itextpdf.text.Chunk)5 Image (com.itextpdf.text.Image)5 PdfWriter (com.itextpdf.text.pdf.PdfWriter)5 ObjetivoDisciplinaDTO (com.tomasio.projects.trainning.dto.ObjetivoDisciplinaDTO)5 SubunidadeDidaticaDTO (com.tomasio.projects.trainning.dto.SubunidadeDidaticaDTO)5