Hi, I am using Html2PdfConverter to convert a HTML into PDF. Below was my step
Widget Tree
Properties
Generate PDF (Flow) :
Flow diagram :
But the exported PDF file not in proper formatting
It should be something like this:
Appreciate that if can help to identify the root cause.
Thanks.
Hi @Roger Jou, we've also encountered the same problem in HTMLtoPDFConverter. In our case, the root cause is the Content-Security Policy of the application is turned on. Please refer to this thread. We tried all the solution to fix the CSP issue of the extension but with no luck.
As an alternative extension, we use UltimatePDF and so far we are not encountering CSS formatting problem even if the CSP is turned on.
Hope this helps,
Thank you
Hi Marco Mateo, thank you for your prompt replied, it's quite useful to us, I will try to use your suggestion to generate our PDF file.
Hi. Any luck with fixing your PDF issue? We're facing the same issue with our app... Thanks
Hi, I am also facing same PDF formatting issue, can anybody help to resolve this.
My PDF formatting issue is resolved, just do following
I have changed style-src to the following in Lifetime, Environment Security, CSP:
*
Self
Then I republished all modules (took several hours), and finally it is working as expected.