Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#15 [patch] Support for Landscape orientation

v3.0b
open
nobody
None
5
2007-09-11
2007-09-11
DjDarkman
No

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.

Discussion

  • Sewa Golubkow
    Sewa Golubkow
    2008-08-19

    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.