Horde_Pdf_Writer::getFormatWidth PHP Method

getFormatWidth() public method

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

Usage Example

コード例 #1
0
ファイル: WriterTest.php プロジェクト: jubinpatel/horde
 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());
 }