How to choose the optimal size for a font?

后端 未结 2 2074
梦如初夏
梦如初夏 2020-12-21 18:10

I\'m creating a pdf document with a grid table based on the PdfPTable in itextpdf. The input data arrives as a java String[][] with all the cells filled. For each column, I

2条回答
  •  青春惊慌失措
    2020-12-21 18:51

    Simple use follow syntax.

    PdfPTable table = new PdfPTable(1);
    table.setWidthPercentage(100);
    table.addCell(new Phrase("Name", FontFactory.getFont(
                        FontFactory.HELVETICA, 8, Font.BOLD)));
    

提交回复
热议问题