I want to insert a piece of text into a PDF that contains bold and non-greasy areas, but I donβt know how I can do this?
I am using iText5 (java).
This is my code:
public class CreatePdf{ private Font bigFont = FontFactory.getFont(FontFactory.HELVETICA, "Windows-1254", 12, Font.BOLD, new Color(0, 0, 0)); private Font smallFont = FontFactory.getFont(FontFactory.HELVETICA, "Windows-1254", 8, Font.NORMAL, new Color(0, 0, 0)); public void create(){ Paragraph parag1=new Paragraph("Number: ",bigFont);
source share