List of usage examples for com.itextpdf.text.pdf PdfPTable getChunks
public List<Chunk> getChunks()
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); } } }