Hello All,
Please I have this error when I try to convert my html template to pdf.
java.lang.IllegalArgumentException: Font size too small: 0.0
at com.lowagie.text.pdf.PdfContentByte.setFontAndSize(PdfContentByte.java:1649)
at org.xhtmlrenderer.pdf.ITextOutputDevice.drawString(ITextOutputDevice.java:505)
at org.xhtmlrenderer.pdf.ITextTextRenderer.drawString(ITextTextRenderer.java:40)
at org.xhtmlrenderer.render.AbstractOutputDevice.drawText(AbstractOutputDevice.java:78)
at org.xhtmlrenderer.render.InlineText.paint(InlineText.java:129)
at org.xhtmlrenderer.render.InlineLayoutBox.paintInline(InlineLayoutBox.java:262)
at org.xhtmlrenderer.layout.Layer.paintInlineContent(Layer.java:258)
at org.xhtmlrenderer.layout.Layer.paint(Layer.java:315)
at org.xhtmlrenderer.pdf.ITextRenderer.paintPage(ITextRenderer.java:495)
at org.xhtmlrenderer.pdf.ITextRenderer.writePDF(ITextRenderer.java:443)
at org.xhtmlrenderer.pdf.ITextRenderer.createPDF(ITextRenderer.java:396)
at org.xhtmlrenderer.pdf.ITextRenderer.createPDF(ITextRenderer.java:328)
at fr.site.service.EmailService.convertHtmlToPdf(EmailService.java:417)
at fr.site.service.EmailService.GeneratePdfFromHtml(EmailService.java:406)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
Your table/@style contains a font-size property with 0px value. Try a valid value.
And read the error message.
--
You received this message because you are subscribed to the Google Groups "Flying Saucer Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flying-saucer-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flying-saucer-users/d9599f64-125b-4b81-aef4-2d1623c32915n%40googlegroups.com.