I added the following to \plugins\phocapdf\restaurantmenu.php at line 187
Code: Select all
$auto_page_break = $this->AutoPageBreak;
$this->SetAutoPageBreak(true, 0);
$img_file = K_PATH_IMAGES.'J.gif';
$this->Image($img_file, $x=0, $y=121, $w=150, $h=176, $type='', $link='', $align='', $resize=false, $dpi=72, $palign='', $ismask=false, $imgmask=false, $border=0);
$this->SetAutoPageBreak($auto_page_break);
However as you can see in the Wine List PDF the margin bottom parameter is now not being applied.
Taken from TCPDF element index
If I set the second parameter in SetAutoPageBreak to anything other 0, it fails big time.SetAutoPageBreak(true, 0)
Enables or disables the automatic page breaking mode. When enabling, the second parameter is the distance from the bottom of the page that defines the triggering limit. By default, the mode is on and the margin is 2 cm.
The ability to add watermarks would be a nice featureInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.