TCPDF not render all CSS properties

后端 未结 10 1831
不思量自难忘°
不思量自难忘° 2020-12-05 09:15

I try to make a PDF writing CSS and HTML but my CSS doesn\'t appear in my PDF. The only thing considered is the font-size and font-color.

I give you the code (sorry,

10条回答
  •  佛祖请我去吃肉
    2020-12-05 10:06

    I found this:

    // Remove tag bottom and top margins
    
    $tagvs = array( 'p' => array( 
                                  0 => array('h' => 0, 'n' => 0), 
                                  1 => array('h' => 0, 'n' => 0)
                                 ) 
                  );
    $pdf->setHtmlVSpace($tagvs);
    

    in here: https://tcpdf.org/examples/example_061/

    Use it to remove 'p' tags properties (bottom and top), then position the 'p' text inside a cell.

提交回复
热议问题