Menu ▾ ▴

#305 table cellspacing=0 border partially hidden

v1.0_(example)
open
nobody
None
3
2014-03-07
2014-02-17
Maxim
No

If export result of phpExcel with borders to tcPDF, in result some borders are broken if table has cellspacing=0.

In attached example we have problems:

  1. top border has width larger than table;
  2. under title of table (under second row) missed border;
  3. under string "str1" missed border;
  4. under string str4 almost missed border. It output partially;
  5. under string str6 almost missed border. It output partially;
  6. last border partially hidden over previous string.

Possible and partially solution: use mode=int for cell borders at tcpdf.php:~16723
~~
$dom[$key]['border'][$bsk] = $borderstyle;
$dom[$key]['border']['mode'] = 'int';
~~
(this is only for cases like in example. Need to add for css: border:2px solid black;)

1 Attachments

Discussion

  • Nicola Asuni

    Nicola Asuni - 2014-02-18

    Ticket moved from /p/tcpdf/bugs/894/

     
  • Nicola Asuni

    Nicola Asuni - 2014-02-18

    Please note that TCPDF is not intended to convert generic HTML code but instead it uses some XHTML code syntax to simplify the formatting.
    In this case you should adapt the HTML code to be TCPDF friendly :)

     
  • Maxim

    Maxim - 2014-03-07

    Unfortunately this is not my code. This is sample of phpExcel export code, which it send to TcPDF.

     

Log in to post a comment.