Example usage for com.itextpdf.text.pdf PdfPTable getChunks

List of usage examples for com.itextpdf.text.pdf PdfPTable getChunks

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf PdfPTable getChunks.

Prototype

public List<Chunk> getChunks() 

Source Link

Document

Gets all the chunks in this element.

Usage

From source file:com.github.wolfposd.imsqti2pdf.PDFCreator.java

License:Open Source License

private void fixFonts(Paragraph para) {
    for (Element element : para) {
        if (element instanceof Paragraph) {
            Paragraph p = (Paragraph) element;
            p.getFont().setSize(OVERALLFONTSIZE);
            fixFonts(p);//from  w  w  w  .  j  ava2 s  .c om
        } else if (element instanceof Chunk) {
            Chunk c = (Chunk) element;
            c.getFont().setSize(OVERALLFONTSIZE);
        } else if (element instanceof List) {
        } else if (element instanceof PdfPTable) {
            PdfPTable table = (PdfPTable) element;
            for (Chunk c : table.getChunks()) {
                c.getFont().setSize(OVERALLFONTSIZE);
            }
        } else {
            // System.out.println(element);
        }
    }
}