Horde_Pdf_Writer::getDrawColor PHP Method

getDrawColor() public method

Get the draw color
public getDrawColor ( ) : string
return string
    public function getDrawColor()
    {
        return $this->_draw_color;
    }

Usage Example

Example #1
0
 public function testTextColorUsingHex()
 {
     $pdf = new Horde_Pdf_Writer();
     $pdf->setInfo('timestamp', $this->fixtureCreationDate());
     $pdf->setCompression(false);
     $pdf->open();
     $pdf->addPage();
     $pdf->setFont('Helvetica', 'B', 48);
     $pdf->setDrawColor('hex', '#F00');
     $pdf->setTextColor('hex', '#0F0');
     $pdf->setFillColor('hex', '#00F');
     $this->assertEquals('1.000 0.000 0.000 RG', $pdf->getDrawColor());
     $this->assertEquals('0.000 1.000 0.000 rg', $pdf->getTextColor());
     $this->assertEquals('0.000 0.000 1.000 rg', $pdf->getFillColor());
 }