Page break and Alt tag not working in Itext7 html2pdf

I am trying to use example code as described in the documentation page

http://developers.itextpdf.com/content/itext-7-examples/converting-html-pdf/pdfhtml-accessible-pdf-creation

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


1 answer


CSS pagination property support added in pdfHTML v1.0.1

Missing / alt tags were buggy in 1.0.0 and fixed in 1.0.1



(Carrying out this as an answer for the sake of appearances, since this question has appeared here and there before).

+1


source







All Articles