iText7 Quick Guide - Otaku-Projects/ReportEngine GitHub Wiki

Official Documentation

The below tutorials are very important,

iText 7: Converting HTML to PDF with pdfHTML

Recommend to read the repositity source and the Chapter 1, 2, 3, 4, 6, 7 for you to better understand the iText7 library

Main menu iText 7: Converting HTML to PDF with pdfHTML

Chapter 1: Hello HTML to PDF

Chapter 2: Defining styles with CSS

Chapter 3: Generating PDF based on Media Queries

Chapter 4: Creating reports using pdfHTML

Chapter 5: Custom tag workers and CSS appliers

Chapter 6: Using fonts in pdfHTML

Chapter 7: Frequently Asked Questions about pdfHTML

Supplementary examples / reference

Plus something common features you want in the printing result, please read the supplementary examples like

pdfHTML: Support for overflow-wrap, word-break CSS Properties

  • long text wrap to the next line

pdfHTML: configuration options

  • set baseURL for page to use relative path in element's attributes(src, href)
  • add fonts file
  • set media=PRINT or media=SCREEN

Page events for headers and footers

  • how to repeat headers and footers