Horde_Pdf_Writer::getFormatHeight PHP Method

getFormatHeight() public method

public getFormatHeight ( ) : float
return float
    public function getFormatHeight()
    {
        return $this->_default_orientation == 'P' ? $this->fhPt : $this->fwPt;
    }

Usage Example

Example #1
0
 public function testFactoryWithDefaults()
 {
     $pdf = new Horde_Pdf_Writer();
     $this->assertEquals('P', $pdf->getDefaultOrientation());
     $this->assertTrue(abs($pdf->getScale() - 2.8346456692913) < 1.0E-6);
     $this->assertEquals(841.89, $pdf->getFormatHeight());
     $this->assertEquals(595.28, $pdf->getFormatWidth());
 }