use of com.itextpdf.text.Paragraph in project trainning by fernandotomasio.
the class DOC002PDF method buildComplementacaoInstrucao.
private Chapter buildComplementacaoInstrucao(CurriculoMinimoDTO curriculo) throws DocumentException {
Chapter ch = new Chapter(new Paragraph("COMPLEMENTAÇÃO DA INSTRUÇÃO", fontManager.getBoldFont()), 3);
ch.add(Chunk.NEWLINE);
PdfPTable tableComplementacaoInstrucao = buildComplamentacaoInstrucaoTable(curriculo);
ch.add(tableComplementacaoInstrucao);
ch.add(Chunk.NEWLINE);
PdfPTable tableFlexibilidade = buildFlexibilidadeTable(curriculo);
ch.add(tableFlexibilidade);
return ch;
}
use of com.itextpdf.text.Paragraph in project trainning by fernandotomasio.
the class DOC002PDF method buildTableRecomendacoesMetodologicas.
private PdfPTable buildTableRecomendacoesMetodologicas(DisciplinaDTO disciplina) {
PdfPTable table = new PdfPTable(1);
table.setWidthPercentage(100);
PdfPCell cellHeader;
cellHeader = new PdfPCell(new Phrase("RECOMENDACÕES METODOLÓGICAS", fontManager.getBoldFont()));
cellHeader.setPadding(10);
table.addCell(cellHeader);
PdfPCell cellContent;
cellContent = new PdfPCell();
RecomendacaoMetodologicaDTO[] recomendacoes = teachingDocumentsService.findAllRecomendacoesMetodologicasByDisciplina(disciplina.getId());
for (RecomendacaoMetodologicaDTO recomendacao : recomendacoes) {
Paragraph referenciaParagraph = new Paragraph(recomendacao.getTexto(), fontManager.getDefaultFont());
cellContent.addElement(referenciaParagraph);
}
cellContent.setPadding(10);
table.addCell(cellContent);
return table;
}
use of com.itextpdf.text.Paragraph in project trainning by fernandotomasio.
the class DOC002PDF method buildDisposicoesFinais.
private Chapter buildDisposicoesFinais(CurriculoMinimoDTO curriculo) {
Chapter ch = new Chapter(new Paragraph("DISPOSIÇÕES FINAIS", fontManager.getBoldFont()), 8);
ch.add(Chunk.NEWLINE);
IReportUtil.fillChapter(ch, curriculo.getDisposicoesFinais2());
return ch;
}
use of com.itextpdf.text.Paragraph in project trainning by fernandotomasio.
the class DOC002PDF method buildSumario.
private Chapter buildSumario(ArrayList<Paragraph> titles) throws DocumentException {
Paragraph p = new Paragraph("SUMÁRIO", fontManager.getBoldFont());
p.setAlignment(Element.ALIGN_CENTER);
Chapter ch = new Chapter(p, 0);
ch.setNumberDepth(0);
ch.add(Chunk.NEWLINE);
for (Paragraph title : titles) {
ch.add(title);
}
return ch;
}
use of com.itextpdf.text.Paragraph in project trainning by fernandotomasio.
the class DOC002PDF method buildAbreviaturas.
private Chapter buildAbreviaturas(CurriculoMinimoDTO curriculo) {
Paragraph p = new Paragraph("LISTA DE ABREVIATURAS", fontManager.getBoldFont());
p.setAlignment(Element.ALIGN_CENTER);
Chapter ch = new Chapter(p, 0);
ch.setNumberDepth(0);
ch.add(Chunk.NEWLINE);
AbreviaturaDTO[] abreviaturas = teachingDocumentsService.findAllAbreviaturasByPUD(curriculo.getId());
for (AbreviaturaDTO abreviatura : abreviaturas) {
String item = abreviatura.getSigla() + " - " + abreviatura.getDescricao();
Paragraph itemParagraph = new Paragraph(item, fontManager.getDefaultFont());
itemParagraph.setAlignment(Element.ALIGN_LEFT);
ch.add(itemParagraph);
}
return ch;
}
Aggregations