Apr 27, 2021
0
Level 12
How do I output Trix rich text to PDF
I have an application that allows users to build method statements. They can build rich text Method Statements using Laravel-Trix editor which allows the inclusion of images. All this works fine but I need to output the completed report to PDF, or at least some format that allows me to print the report.
I have tried FPDF and DomPDF. DomPDF will output the formatted text but not the images.
Does anyone know how to achieve this. I don't have to use Trix but it is easy to use in Laravel.
Thanks in advance.
Please or to participate in this conversation.