504前台和后台办公室在prestashop 1.6.1.3中生成pdf with image时的网关超时

时间:2016-11-14 12:50:44

标签: pdf prestashop prestashop-1.6 prestashop-1.5 prestashop-1.7

当在prestashop 1.6.1.3中生成带有图像的pdf时,我们将获得504网关超时

在.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库 - ) enter image description here

1 个答案:

答案 0 :(得分:0)

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

此致

相关问题