This topic is locked
[SOLVED]

 Pass formatted HTML to PDF from text area field uses the Rich text editor

2/5/2020 9:07:18 AM
PHPRunner General questions
woodey2002 author

Hi Guys,
Just wondering if there is an easy way to pass formatted HTML from a text area field on a view page to a PDF via the View PDF button on the view page?
The text area field uses the CKEditor on the edit page to add text to which looks great in the view page, i can see nicely formatted text.
However when I generate the PDF the text from the text area field appears in a single block minus any of the formatting
Therefore just wondering can we pass the HTML formatting somehow from the text area field to the PDF?
I have seen this example but do not have the foggiest idea if it would work or where to apply it.
https://www.npmjs.com/package/html-to-pdfmake.
Many thanks,

J

mbintex 2/7/2020

It was possible in 9.8 where DOMPDF was used for PDF generation. I used that regularly.
Now with PDFMake.js as the PDF Maker this option has gone.
Perhaps you could integrate something like this
https://github.com/Aymkdn/html-to-pdfmake
or embed DOMPDF again for this purpose.
Related problem exists in 10.3 with reports - if you change the HTML directly, all these changes don´t make it to the PDF. In 9.8 this was no problem.
I already asked Sergey for closing this feature gap - perhaps you mail that as a feature wish to him as well.
Your link brings 404.

fhumanes 2/7/2020

Hi:
It is not exactly what you ask, but it is an alternative with any version of PHPRunner.

Use SETASIGN https://asprunner.com/forums/topic/26856-print-and-forms-management-in-pdf
Greetings,

woodey2002 author 2/20/2020

Thanks for the replies guys, the team at xline have kindly included this functionality in the latest build,
Well done and thanks again!