Page break and Alt tag not working in Itext7 html2pdf
I am trying to use example code as described in the documentation page
However, when I generate the pdf, no alt tags are specified and hence a PDF accessibility check is requested. I also found out that page break does not work with a given html sample page. Can anyone help me solve these two questions? My POM.xml has the following dependencies. I created the exact files and copied the code as mentioned in the article above.
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itext7-core</artifactId>
<version>7.0.2</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>html2pdf</artifactId>
<version>1.0.0</version>
</dependency>
<repository>
<id>itext</id>
<name>iText Repository - releases</name>
<url>https://repo.itextsupport.com/releases</url>
</repository>
thank
SGK
+3
source to share