I use border-collapse (CSS) to make thin borders on my table. They display thin images on the screen, but when they are sent to PDF, through cfDocument they end as thicker gray borders.
I read that cfDocument does not yet support crash collapse, so what is my best option?
ColdFusion 9
The tables are 90, but this seems to work for cfdocument pdf (not compatible with web browser display):
.tbl {background-color:#000;} .tbl td,th,caption{background-color:#fff}
...
<table cellspacing="1" class="tbl"> ... </table>
(the interval between the borders in the style setting does not work - you should put attr in the table tag)
cfdocument. , :
, CSS :
table td { border: solid thin black; }
:
table, table td { border: solid black; } table { border-width: 1px 1px 0 0; } table td { border-width: 0 0 1px 1px; }
. , "" , - , 1px, , ( 2px).
, "scale" cfdocument, , .
cfdocument . css3, javascript .. wkhtmltopdf. webkit PDF , Safari/Chrome.
, CFDOCUMENT HTML- , , . , , :
<table cellpadding="1" cellspacing="1" bgcolor="black"> <tr> <td bgcolor="white">Data</td> <td bgcolor="white">Data</td> </tr> <tr> <td bgcolor="white">Data</td> <td bgcolor="white">Data</td> </tr> <tr> <td bgcolor="white">Data</td> <td bgcolor="white">Data</td> </tr> </table>
, .
@gordon, , PDF. - . , , .
The report designer is only useful when you want to quickly create an interactive table type report that allows the user to collapse the UN row to get more data data that will be children of the parent focus row.
I have to say that I found this quite useful and very close to what SSRS offers. But it really doesn't help when it comes to exporting to pdf or excel.
border-bottom: 0.4pt solid #ccc;