pdf generation - border-collapse is not working in flying-saucer? -
in flying-saucer, border-collapse not working if use fs-paginate-table same table.
does know workaround on this?
use :
table { border-spacing: 0; }
example:
table{-fs-table-paginate:paginate;} td{border:1px solid red}
table{-fs-table-paginate:paginate;border-spacing:0} td{border:1px solid red}
the result not same (as td's borders don't merge), can fixed setting borders on 1 side of td.
#t4{-fs-table-paginate:paginate;border-spacing:0} #t4 td{border-width:0 1px 1px 0;border-color:red} #t4 tr.firstrow td{border-top-width:1px} /* assuming first tr has class firstrow */ #t4 td.firstcol{border-left-width:1px} /* assuming first td of each line has class firstcol */
Comments
Post a Comment