In Eshop product pages it has the feature to Download a PDF of the page. Is there any way I can set CSS for the output of that PDF. I want to set images that have a particular class to display none in the PDF only.
I have tried as many ways I can think of to add the inline CSS there but none of them worked. Obviously I need to learn more about PHP to make it work. I just assumed as you wrote this software you would know how to write the PHP to do that in your sleep.
If anyone else reading this forum post knows how to add inline CSS to that line of code (where the product_desc is pulling the html directly from the database) please let me know.
The situation I was running into was, I was able to apply basic styles to pdftemplates/default.php using style tags but when I tried to use display none to an image which had a class, it just made everything blank on the PDF from that piont onwards.
Solution: I found that if I wrapped the image in a span tag and placed the class on the span instead. Then I was able to use display none to the span and the image didn't appear in the PDF out put and it worked fine.