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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations