Tutorial by Examples

In this iText 5 example, we need to switch between different styles in the same document: The best way to do this in iText 5, is to create a convenience method that creates a Chunk in the style that needs to be used frequently; see the createBgChunk() method: public Chunk createBgChunk(String s,...
In this iText 7 example, we need to switch between different styles in the same document: The best way to achieve this in iText 7, is to create a Style object, and to apply that Style to a Text object: public void createPdf(String dest) throws IOException { PdfDocument pdf = new PdfDocument...

Page 1 of 1