Search in sources :

Example 41 with Phrase

use of com.itextpdf.text.Phrase in project trainning by fernandotomasio.

the class ApostilaDECEATableManager method getPhraseCellCenterBold.

@Override
public PdfPCell getPhraseCellCenterBold(String content) {
    PdfPCell c = new PdfPCell(new Phrase(ReportUtil.convertEncode(content), fontManager.getBoldFont()));
    c.setLeading(12f, 0);
    c.setPadding(5);
    c.setHorizontalAlignment(Element.ALIGN_CENTER);
    c.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return c;
}
Also used : PdfPCell(com.itextpdf.text.pdf.PdfPCell) Phrase(com.itextpdf.text.Phrase)

Example 42 with Phrase

use of com.itextpdf.text.Phrase in project trainning by fernandotomasio.

the class ApostilaDECEATableManager method getPhraseCellCenter.

@Override
public PdfPCell getPhraseCellCenter(String content) {
    PdfPCell c = new PdfPCell(new Phrase(ReportUtil.convertEncode(content), fontManager.getDefaultFont()));
    c.setLeading(12f, 0);
    c.setPadding(5);
    c.setHorizontalAlignment(Element.ALIGN_CENTER);
    c.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return c;
}
Also used : PdfPCell(com.itextpdf.text.pdf.PdfPCell) Phrase(com.itextpdf.text.Phrase)

Example 43 with Phrase

use of com.itextpdf.text.Phrase in project trainning by fernandotomasio.

the class ApostilaDECEATableManager method getHeaderCell.

@Override
public PdfPCell getHeaderCell(String title) {
    PdfPCell header = new PdfPCell(new Phrase(ReportUtil.convertEncode(title), fontManager.getDefaultFont()));
    header.setHorizontalAlignment(Element.ALIGN_CENTER);
    header.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return header;
}
Also used : PdfPCell(com.itextpdf.text.pdf.PdfPCell) Phrase(com.itextpdf.text.Phrase)

Example 44 with Phrase

use of com.itextpdf.text.Phrase in project trainning by fernandotomasio.

the class CustomTableManager method getPhraseCellCenter.

@Override
public PdfPCell getPhraseCellCenter(String content) {
    PdfPCell c = new PdfPCell(new Phrase(ReportUtil.convertEncode(content), fontManager.getDefaultFont()));
    c.setLeading(12f, 0);
    c.setPadding(5);
    c.setHorizontalAlignment(Element.ALIGN_CENTER);
    c.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return c;
}
Also used : PdfPCell(com.itextpdf.text.pdf.PdfPCell) Phrase(com.itextpdf.text.Phrase)

Example 45 with Phrase

use of com.itextpdf.text.Phrase in project trainning by fernandotomasio.

the class CustomTableManager method getPhraseCellRight.

@Override
public PdfPCell getPhraseCellRight(String content) {
    PdfPCell c = new PdfPCell(new Phrase(ReportUtil.convertEncode(content), fontManager.getDefaultFont()));
    c.setLeading(12f, 0);
    c.setPadding(5);
    c.setHorizontalAlignment(Element.ALIGN_RIGHT);
    c.setVerticalAlignment(Element.ALIGN_MIDDLE);
    return c;
}
Also used : PdfPCell(com.itextpdf.text.pdf.PdfPCell) Phrase(com.itextpdf.text.Phrase)

Aggregations

Phrase (com.itextpdf.text.Phrase)50 PdfPCell (com.itextpdf.text.pdf.PdfPCell)42 PdfPTable (com.itextpdf.text.pdf.PdfPTable)17 Paragraph (com.itextpdf.text.Paragraph)14 Image (com.itextpdf.text.Image)7 IOException (java.io.IOException)7 Chunk (com.itextpdf.text.Chunk)6 Font (com.itextpdf.text.Font)6 BadElementException (com.itextpdf.text.BadElementException)5 DocumentException (com.itextpdf.text.DocumentException)5 ArrayList (java.util.ArrayList)5 KpiVO (com.netsteadfast.greenstep.vo.KpiVO)4 ObjectiveVO (com.netsteadfast.greenstep.vo.ObjectiveVO)4 PerspectiveVO (com.netsteadfast.greenstep.vo.PerspectiveVO)4 ObjetivoDisciplinaDTO (com.tomasio.projects.trainning.dto.ObjetivoDisciplinaDTO)4 BaseColor (com.itextpdf.text.BaseColor)3 List (com.itextpdf.text.List)3 ListItem (com.itextpdf.text.ListItem)3 BaseFont (com.itextpdf.text.pdf.BaseFont)3 PdfContentByte (com.itextpdf.text.pdf.PdfContentByte)3