TCPDF 灰色边框/PNG 轮廓

时间:2020-12-19 19:53:38

标签: php png tcpdf

使用 TCPDF v6.3.2 将 base64 PNG 图像添加到 PDF 时,两侧有灰色边框:

enter image description here

这是我的代码:

$value = explode(',', $value);
$value = $value[1];
$pdf->Image(
    '@' . base64_decode( $value ),
    $this->position('x'),           // X
    $this->position('y'),           // Y
    $this->size('width_mm'),        // Width
    $this->size('height_mm')       // Height

);

如果我只是将解码的 base64 写入文件,这是图像(在上面画一些草图,您可以看到没有灰色边框):

enter image description here

知道是什么原因造成的吗?

0 个答案:

没有答案