Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need Thin Table Borders in PDF Generated by cfDocument

I'm using border-collapse (CSS) to make thin borders on my table. They render fine on the screen, but when they are sent into a PDF, via cfDocument, they end up as thicker grey borders.

I read that cfDocument doesn't support border-collapse yet, so what's my best option?

ColdFusion 9

like image 404
sugardaddy Avatar asked May 16 '12 12:05

sugardaddy


1 Answers

Tables are so 90's but this does seem to work for cfdocument pdf (inconsistent on web browser display though):

.tbl {background-color:#000;}
.tbl td,th,caption{background-color:#fff}

...

<table cellspacing="1" class="tbl">
...
</table>

(border-spacing in style setting doesn't work - you have to put the attr in the table tag)

like image 137
gordon Avatar answered Sep 28 '22 01:09

gordon