0

在 prestashop 1.6.1.3 中生成带有图像的 pdf 时,我们得到 504 Gateway Time-out

在 .tpl 文件中,我们有图像的路径,如下所示:

<td width="50%" valign="top"><table width="100%" style="padding:10px;" id="leftTable"><tr><td>
{if $product_id==2}
<img src="http://mywebsite.ae/img/images1.jpg" style="width:200px; height:81px;" />
{else}
<img src="http://mywebsite.ae/img/images2.jpg" style="width:200px; height:86px;" />
{/if}

我们正在使用 tcpdf 库(甚至更新了最新的 tcpdf 库-) 在此处输入图像描述

4

1 回答 1

0

您是否尝试增加服务器超时值?可能将图像选项更改为清晰度较低的格式?在 PDF 渲染中包含图像的 Prestashop 建议可能会使 PDF 生成速度变慢。

问候

于 2016-11-24T17:58:14.817 回答