Example usage for com.itextpdf.text Chunk Chunk

List of usage examples for com.itextpdf.text Chunk Chunk

Introduction

In this page you can find the example usage for com.itextpdf.text Chunk Chunk.

Prototype

public Chunk() 

Source Link

Document

Empty constructor.

Usage

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;
}