List of usage examples for com.itextpdf.text Chunk Chunk
public Chunk()
From source file:facturacion.pdf.FacturaPdf.java
private PdfPCell getCellNoBorder(String text) throws DocumentException, IOException { Chunk chunk = new Chunk(); chunk.append(text);/* w ww . j a v a 2s. c om*/ chunk.setFont(fontNormal); PdfPCell cell = new PdfPCell(new Paragraph(chunk)); cell.setHorizontalAlignment(Element.ALIGN_LEFT); cell.setBorder(Rectangle.NO_BORDER); return cell; }
From source file:facturacion.pdf.FacturaPdf.java
private PdfPCell getCell(String text) throws DocumentException, IOException { Chunk chunk = new Chunk(); chunk.append(text);/*from ww w . j a va 2s . c om*/ chunk.setFont(fontNormal); PdfPCell cell = new PdfPCell(new Paragraph(chunk)); cell.setHorizontalAlignment(Element.ALIGN_LEFT); cell.setBorder(Rectangle.LEFT); return cell; }
From source file:facturacion.pdf.FacturaPdf.java
private PdfPCell getCellBox(String text) throws DocumentException, IOException { Chunk chunk = new Chunk(); chunk.append(text);//from ww w . j a v a 2s . c o m chunk.setFont(fontNormal); PdfPCell cell = new PdfPCell(new Paragraph(chunk)); cell.setHorizontalAlignment(Element.ALIGN_LEFT); cell.setBorder(Rectangle.BOX); return cell; }