How to set bold and italic to a word in itext pdf.
for example:
"Hello World"
in one sentence
please advice me.
Please check this one:
Font font1 = new Font(Font.TIMES_ROMAN, 10, Font.BOLD);
Chunk hello = new Chunk("Hello", font1);
Chunk world = new Chunk("World",
new Font(Font.TIMES_ROMAN, 10, Font.ITALIC));
document.add(hello);
document.add(world);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With