I have created a pdf template with 'open office writer' and filled the fields with iText. In pseudo code like this:
PdfReader reader = new PdfReader("C:/temp/Template.pdf");
FileOutputStream fileOutputStream = new FileOutputStream("C:/temp/TemplateTest.pdf");
PdfStamper stamper = new PdfStamper(reader, fileOutputStream);
stamper.setFormFlattening(true);
stamper.getAcroFields().setField("description", "This is a important description.");
stamper.close();
Now I just want the word 'important' in the 'description' text bold. How can I handle this? Is it possible to change a given format in a pdf template with iText and for substrings as well?