use of com.itextpdf.text.BaseColor in project bamboobsc by billchen198318.
the class OrganizationReportPdfCommand method setCellBackgroundColor.
private void setCellBackgroundColor(PdfPCell cell, String color) throws Exception {
int[] rgb = SimpleUtils.getColorRGB2(color);
cell.setBackgroundColor(new BaseColor(rgb[0], rgb[1], rgb[2]));
}
use of com.itextpdf.text.BaseColor in project bamboobsc by billchen198318.
the class PersonalReportPdfCommand method setCellBackgroundColor.
private void setCellBackgroundColor(PdfPCell cell, String color) throws Exception {
int[] rgb = SimpleUtils.getColorRGB2(color);
cell.setBackgroundColor(new BaseColor(rgb[0], rgb[1], rgb[2]));
}
use of com.itextpdf.text.BaseColor in project bamboobsc by billchen198318.
the class PersonalReportPdfCommand method getFont.
private Font getFont(String color, boolean bold) throws Exception {
Font font = FontFactory.getFont(BscConstants.PDF_ITEXT_FONT, BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
int[] rgb = SimpleUtils.getColorRGB2(color);
BaseColor baseColor = new BaseColor(rgb[0], rgb[1], rgb[2]);
font.setSize(9);
font.setColor(baseColor);
return font;
}
Aggregations