Horde_Pdf_Writer::setLeftMargin PHP Method

setLeftMargin() public method

The method can be called before creating the first page. If the current abscissa gets out of page, it is brought back to the margin.
See also: setAutoPageBreak()
See also: setMargins()
See also: setRightMargin()
See also: setTopMargin()
public setLeftMargin ( float $margin )
$margin float The margin.
    public function setLeftMargin($margin)
    {
        $this->_left_margin = $margin;
        /* If there is a current page and the current X position is less than
         * margin set the X position to the margin value. */
        if ($this->_page > 0 && $this->x < $margin) {
            $this->x = $margin;
        }
    }