31 $oItem =
new stdClass();
32 $oItem->sFunc = $sFunc;
33 $oItem->aParams = $aParams;
34 $this->_aCache[] = $oItem;
42 public function run($oPdf)
44 foreach ($this->_aCache as $oItem) {
46 switch (count($oItem->aParams)) {
51 $oPdf->$sFn($oItem->aParams[0]);
54 $oPdf->$sFn($oItem->aParams[0], $oItem->aParams[1]);
57 $oPdf->$sFn($oItem->aParams[0], $oItem->aParams[1], $oItem->aParams[2]);
60 $oPdf->$sFn($oItem->aParams[0], $oItem->aParams[1], $oItem->aParams[2], $oItem->aParams[3]);
74 public function line($iLPos, $iLHeight, $iRPos, $iRHeight)
76 $this->
_toCache(
'Line', array($iLPos, $iLHeight, $iRPos, $iRHeight));
86 public function text($iLPos, $iLHeight, $sString)
88 $this->
_toCache(
'Text', array($iLPos, $iLHeight, $sString));
98 public function font($sType, $sWeight, $sSize)
100 $this->
_toCache(
'SetFont', array($sType, $sWeight, $sSize));
110 foreach ($this->_aCache as $key => $oItem) {
111 switch ($oItem->sFunc) {
113 $this->_aCache[$key]->aParams[3] += $iDelta;
114 $this->_aCache[$key]->aParams[1] += $iDelta;
117 $this->_aCache[$key]->aParams[1] += $iDelta;