【问题标题】:Resize background image same as page width and height in tcpdf with wordpress使用wordpress在tcpdf中调整背景图像的大小与页面宽度和高度相同
【发布时间】:2017-03-14 10:47:51
【问题描述】:

我正在尝试创建带有背景图像的 pdf。它没有调整到页面宽度和高度。这是我使用的代码。

$pdf->setImageScale(1.53);
$pdf->AddPage();
$width = $pdf->getPageWidth();
$height = $pdf->getPageHeight();
$pdf->Image($img_file, 0, 0, $width, $height, '', '', '', false, 300, '', false, false, 0);

有人有什么想法吗?

【问题讨论】:

  • 您是否尝试过先获取页面宽度和高度,然后将其存储在 var 中并在脚本中调用该 var?
  • 我已经试过了

标签: wordpress image resize scale tcpdf


【解决方案1】:

$pdf->SetAutoPageBreak(false, 0);

【讨论】:

    猜你喜欢
    • 2020-08-04
    • 1970-01-01
    • 2017-12-08
    • 2013-09-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多