applying conditional CSS to PDF export

Questionsapplying conditional CSS to PDF export
Alex asked 8 years ago

Hi,

I use conditional formating in my grid to display numbesr smaller than zero in red and numbers greater than zero in green.
I would like to apply the same formatting to my pdf files.
Is this possible or do i have to use the set_pdf_format method?

Thanks
Alex

1 Answers
Abu Ghufran answered 8 years ago

Yes, this is doable with custom pdf code, and using html renderer.
Please refer attached demo, that uses css class on pdf output.
https://gist.github.com/gridphp/6d0d3f720e491261bb43aadded5b6042

Your Answer

19 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?