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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -