Can I change font color in PDF export?

Can I change font color in PDF export?

DesarrolloPRECDesarrolloPREC Posts: 34Questions: 4Answers: 0

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

Answers

  • allanallan Posts: 61,451Questions: 1Answers: 10,055 Site admin

    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 a customize 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

  • DesarrolloPRECDesarrolloPREC Posts: 34Questions: 4Answers: 0

    Thanks Allan

This discussion has been closed.