[patch] Support for Landscape orientation
Status: Abandoned
Brought to you by:
renatoac
In file: html2pdf.php
Near line: 162
Swap: $this->pgwidth = $this->fw - $this->lMargin - $this->rMargin ;
With:
if ($this->DefOrientation == "P")
{
$this->pgwidth = $this->fw - $this->lMargin - $this->rMargin ;
}
else {
$tmp = $this->fh;
$this->fh = $this->fw;
$this->fw = $tmp;
$this->pgwidth = $this->fw - $this->lMargin - $this->rMargin ;
}
Description:
It is wrong to use the format height and format width because these to need to be swapped when we are *NOT* using portrait, altough my patch can fix this.
Logged In: YES
user_id=2186343
Originator: NO
This patch helps a lot, thank you!
Fixed my Problem with Long Tables not wrapping correctly into the next Page in Landscape Mode.