With iText 7.1.14 and pdfHTML 3.0.3, we are pleased to announce that we have added full support for SVG’s <pattern> element. This element is used to define a graphics object which can be "tiled" fixed intervals in x and y to cover an area.
With full support for the <pattern> element in iText 7 Core’s SVG module, it is now possible for iText 7 Core’s SVG module as well as the pdfHTML add-on to correctly render <pattern> elements in SVG files and HTML-embedded SVG respectively.
You can consult the w3 website link: https://www.w3.org/TR/SVG11/pservers.html for more information about the SVG <pattern> element.
The iText 7 Core code for generating the PDF from SVG remains the same:
Example input HTML:
The pdfHTML code for generating the PDF from HTML remains the same: