PdfPTable header = new PdfPTable(widths);
header.setWidthPercentage(100);
header.getDefaultCell().setBorder(0);
Paragraph p = new Paragraph("Factura no.: ", new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.addCell(p);
p = new Paragraph(invoice.getId().toString(), new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.addCell(p);
p = new Paragraph("Moneda: " + invoice.getCurrency().getDescription(), new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.addCell(p);
p = new Paragraph("Empresa: ", new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.addCell(p);
String companyName = invoice.getCompany().getDescription();
p = new Paragraph(companyName, new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.addCell(p);
header.addCell(new Paragraph(""));
p = new Paragraph("Cotizacion: ", new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.addCell(p);
String quotationId = invoice.getQuotation().getId().toString();
p = new Paragraph(quotationId, new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.addCell(p);
header.addCell(new Paragraph(""));
p = new Paragraph("Descripcion: ", new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.addCell(p);
String description = invoice.getDescription();
p = new Paragraph(description, new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.getDefaultCell().setColspan(2);
header.addCell(p);
p = new Paragraph("Fecha de expiracion: ", new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.getDefaultCell().setColspan(0);
header.addCell(p);
String expiration = simpleFormat.format(invoice.getExpirationDate());
p = new Paragraph(expiration, new Font(Font.HELVETICA, 12, Font.NORMAL));
p.setAlignment(Element.ALIGN_LEFT);
header.addCell(p);
header.addCell(new Paragraph(""));