use of com.itextpdf.layout.element.Paragraph in project ComponentManagement by Bac3Phi.
the class ReportInventoriesController method addTitlePage.
private void addTitlePage(Document document) throws IOException {
Paragraph title = new Paragraph("BÁO CÁO HÀNG TỒN");
// Setting font of the text
title.setFont(font_bold);
title.setFontSize(22);
title.setTextAlignment(TextAlignment.CENTER);
document.add(title);
}
use of com.itextpdf.layout.element.Paragraph in project ComponentManagement by Bac3Phi.
the class ReportPaymentController method addHeader.
private void addHeader(String strheader, Document document) throws IOException {
Paragraph header = new Paragraph(strheader);
// Setting font of the text
header.setFont(font_bold);
header.setFontSize(14);
header.setTextAlignment(TextAlignment.LEFT);
document.add(header);
}
use of com.itextpdf.layout.element.Paragraph in project ComponentManagement by Bac3Phi.
the class ReportPaymentController method addDate.
private void addDate(Document document) throws IOException {
Paragraph date;
if (rdbtnMonth.isSelected()) {
date = new Paragraph("Tháng: " + txtMonth.getText() + "/" + txtYear.getText());
} else
date = new Paragraph("Quý: " + txtMonth.getText() + "/" + txtYear.getText());
// Setting font of the text
date.setFont(font);
date.setFontSize(12);
date.setTextAlignment(TextAlignment.CENTER);
document.add(date);
}
use of com.itextpdf.layout.element.Paragraph in project ComponentManagement by Bac3Phi.
the class ReportPaymentController method addTitlePage.
private void addTitlePage(Document document) throws IOException {
Paragraph title = new Paragraph("Báo Cáo Thu Chi");
// Setting font of the text
title.setFont(font_bold);
title.setFontSize(22);
title.setTextAlignment(TextAlignment.CENTER);
document.add(title);
}
use of com.itextpdf.layout.element.Paragraph in project ComponentManagement by Bac3Phi.
the class InventoriesReportController method addTitlePage.
private void addTitlePage(Document document) throws IOException {
Paragraph title = new Paragraph("BÁO CÁO HÀNG TỒN");
// Setting font of the text
PdfFont font = PdfFontFactory.createFont(FontConstants.TIMES_BOLD);
title.setFont(font);
title.setFontSize(22);
title.setTextAlignment(TextAlignment.CENTER);
document.add(title);
}
Aggregations