I generated a pdf file using itext library . I want to change the font type , style , size , color and so on in the table inside that pdf file.In general i want to change everything in any table inside the generated pdf file from java.
Thank you very much for your help
I do not know if i was not clear enough .
I need to format the tables in pdf file generated by java using itext library. I can not change the font style or size of the table or anything related with the table
Try This mY friend. It defines the Font type and the Size you want to use even in the Table.
Font f4 = new Font(Font.NORMAL, 13, Font.BOLD);
f4.setColor(new java.awt.Color(0, 61, 126));
Paragraph p4 = new Paragraph(firstline, f4);
PdfPTable table = new PdfPTable(1);
PdfPCell cell = new PdfPCell();
cell.setBorderColor(new java.awt.Color(0, 61, 126));
Give a beggar a fish; feed him for a day. Teach him how to fish; Feed him for a lifetime.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop