How do you set table cell colors in an html table exporting to PDF? I'm dynamically generating content that even has background-color: #ffffff
(or red
) and displaying it on a web page, but the backgrounds of the cells just come through as white. Basically every PDF writer I try (Chrome's, LisaNet, Firefox's) doesn't render any color.
Asked
Active
Viewed 1,139 times
2

user1114864
- 1,734
- 6
- 26
- 37
-
How you export to PDF? – mkl Sep 24 '13 at 14:56
-
Using the built in PDF print function in Chrome or Firefox – user1114864 Sep 25 '13 at 04:29
-
Ok, I'm not really into browser pdf exports. But if those exports are handled like print jobs... Well, fairly often printouts By pdf viewers ignore backgrounds by default, too. – mkl Sep 25 '13 at 11:14
-
See similar question http://stackoverflow.com/questions/2392366/print-background-colours-in-chrome – Ruskin Jan 22 '14 at 17:19
1 Answers
0
In PDF is not supported the cell background. we only get in table background. and also padding value and margin value also not supported.

kamatchikumar-India
- 127
- 6