public function acknowledgeLayout(LabelLayoutInterface $layout, UnitOfLengthConverterInterface $converter) { $this->options['left_margin'] = $converter->convert($layout->getLeftMargin(), $layout, $this); $this->options['right_margin'] = $converter->convert($layout->getRightMargin(), $layout, $this); $this->options['top_margin'] = $converter->convert($layout->getTopMargin(), $layout, $this); $this->options['bottom_margin'] = $converter->convert($layout->getBottomMargin(), $layout, $this); }
public function acknowledgeLayout(LabelLayoutInterface $layout, UnitOfLengthConverterInterface $converter) { $this->SetAutoPageBreak(false); $this->AddPage(); $this->SetMargins($converter->convert($layout->getLeftMargin(), $layout, $this), $converter->convert($layout->getTopMargin(), $layout, $this), $converter->convert($layout->getRightMargin(), $layout, $this)); }