java - What replaces chunk in iText 7? -
attempting use itext 7 in java. want have part of paragraph bold. apparently in earlier releases done formatting "chunks" separately adding them paragraph. apparently "chunks" don't exist in itext 7. procedure itext 7?
text
in com.itextpdf.layout.element
meant alternative chunk
.
to make part of paragraph bold, need bold font specified piece of text.
paragraph p = new paragraph(); p.add(new text("this in bold").setfont(boldfont));
alternatively, can rely on itext simulate bold regular font, not preferred way.
p.add(new text("bold simulated regular font").setbold());
please check out jumpstart tutorial written bruno lowagie.
Comments
Post a Comment