Baseline
Using iText 5,we wanted to display a list of labels with checkboxs just for printing a pdf.
Solution
Using unicode caharacters to display white squares is a easy solution if it’s just to print.
We need to implement this special character thanks the font and just write the unicode in the string.
... Font fontArial = FontFactory.getFont("Arial",BaseFont.IDENTITY_H); //IDENTITY_H to implement specials characters Paragraph myParagraph= new Paragraph("\u25A1 choice 1\n\n\u25A1 Choice 2\n\n",fontArial); document.add(myParagraph); ...