Search in sources :

Example 1 with Anchor

use of com.itextpdf.text.Anchor 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

Anchor (com.itextpdf.text.Anchor)1 Paragraph (com.itextpdf.text.Paragraph)1 Phrase (com.itextpdf.text.Phrase)1