boncey / Flickr4Java

Java API For Flickr. Fork of FlickrJ
BSD 2-Clause "Simplified" License
176 stars 155 forks source link

Itext - Error - Worker of type PTagWorker unable to process DivTagWorker #644

Closed achamjayash closed 2 years ago

achamjayash commented 2 years ago

While using IText to process HTML to create a PDF file I get the following error in the logger:

ERROR 9260 --- [nio-8080-exec-2] c.i.h.attach.impl.DefaultHtmlProcessor   : Worker of type com.itextpdf.html2pdf.attach.impl.tags.PTagWorker unable to process com.itextpdf.html2pdf.attach.impl.tags.DivTagWorker

The error is not a typical stack trace error, just a single in the logger. It also doesn't stop execution, and a PDF is generated eventually. Both my HTML and PDF files are rather large, so it's difficult to check piece by piece, but a quick look doesn't seem to show any actual errors in the target file.

Is there a specific reason why this error happens/is shown? And will it eventually prevent a PDF file from being generated?

(All of this is happening in the context of a Spring Boot application. I don't know if that might be relevant).