Can I change font color in PDF export?
Can I change font color in PDF export?
DesarrolloPREC
Posts: 34Questions: 4Answers: 0
in Buttons
Hi
I'm traying to export pdf data with the data content in my DataTables.
My Datatables have some parameters, like, font color, background color, etc.
My next question is: Can I change or set the pdf parameters and put it into my pdf like is setting in my DataTables .
Thanks a lot
This discussion has been closed.
Answers
Hi,
The Excel and PDF export options currently do not include styling information from the table. I was concerned about the performance that such an option would have and also it would add a significant amount of complexity to the software. So at the moment they simply create plain tables.
However, the
pdfHtml5
button type does have acustomize
function that you can use - it will let you modify the pdfmake document to add any styling or any other information that you want. This example shows how an image can be added to the PDF for example.The pdfmake documentation is a little thin on how to add styling, but it should be possible.
Sorry there is no simple option to do this.
Regards,
Allan
Thanks Allan