如何使用WriteHTML隐藏单元格的网格线

时间:2019-09-02 08:12:50

标签: php tcpdf

我正在使用TCPDF在PDF中进行一些更改,但是一旦生成,则单元格将变为网格线, 我如何删除它们?

我的PHP代码:

 // set Constants...

    $html = "<style type='text/css'>span { font-size: 8pt; } </style><span>$dateNew</span>";

    for($top = 0; $top < 6 ; $top++)
    {   
        $ausgabey = $starty + $tempy;
        for($left = 0; $left < 3 ; $left++)
        {
                $ausgabex = $startx +  $tempx   ;   

                $pdf->SetXY(0, 0);
                $pdf->StartTransform();
                $pdf->SetTopMargin($ausgabey);
                $pdf->SetLeftMargin($ausgabex);
                $pdf->Rotate($rotate);          
                $pdf->writeHTML($html, true, false, true, false, '');
                $pdf->StopTransform();

                $tempx = $tempx + $stepx;
        }
        $tempx = 0;
        $tempy = $tempy + $stepy;
    }

    $pdf->Output("$dateiname.pdf",'I');

原始PDF没有网格线,但是运行我的代码后,PDF单元格正在获得网格线,为什么?

0 个答案:

没有答案