| @@ 552-562 (lines=11) @@ | ||
| 549 | { |
|
| 550 | $oldX = $x; |
|
| 551 | $oldY = $y; |
|
| 552 | if ($this->orientacao == 'P') { |
|
| 553 | $maxW = $this->wPrint; |
|
| 554 | } else { |
|
| 555 | if ($pag == 1) { |
|
| 556 | // primeira página |
|
| 557 | $maxW = $this->wPrint - $this->wCanhoto; |
|
| 558 | } else { |
|
| 559 | // páginas seguintes |
|
| 560 | $maxW = $this->wPrint; |
|
| 561 | } |
|
| 562 | } |
|
| 563 | //################################################################## |
|
| 564 | //coluna esquerda identificação do emitente |
|
| 565 | $w = round($maxW * 0.42); |
|
| @@ 676-682 (lines=7) @@ | ||
| 673 | $hdestinatario + ($linhasDup * $hduplicatas) + $himposto + $htransporte + |
|
| 674 | ($linhaISSQN * $hissqn) + $hdadosadic + $hfooter + $hCabecItens + |
|
| 675 | $this->pSizeExtraTextoFatura()); |
|
| 676 | if ($this->orientacao == 'P') { |
|
| 677 | $hDispo1 -= 23 * $this->qCanhoto;//para canhoto |
|
| 678 | $w = $this->wPrint; |
|
| 679 | } else { |
|
| 680 | $hcanhoto = $this->hPrint;//para canhoto |
|
| 681 | $w = $this->wPrint - $this->wCanhoto; |
|
| 682 | } |
|
| 683 | $hDispo2 = $this->hPrint - 10 - ($hcabecalho + $hfooter + $hCabecItens)-4; |
|
| 684 | //Contagem da altura ocupada para impressão dos itens |
|
| 685 | $fontProduto = array('font'=>$this->fontePadrao, 'size'=>7, 'style'=>''); |
|
| @@ 989-997 (lines=9) @@ | ||
| 986 | { |
|
| 987 | $oldX = $x; |
|
| 988 | $oldY = $y; |
|
| 989 | if ($this->orientacao == 'P') { |
|
| 990 | $maxW = $this->wPrint; |
|
| 991 | } else { |
|
| 992 | if ($pag == 1) { // primeira página |
|
| 993 | $maxW = $this->wPrint - $this->wCanhoto; |
|
| 994 | } else { // páginas seguintes |
|
| 995 | $maxW = $this->wPrint; |
|
| 996 | } |
|
| 997 | } |
|
| 998 | //#################################################################################### |
|
| 999 | //coluna esquerda identificação do emitente |
|
| 1000 | $w = round($maxW*0.41, 0); |
|
| @@ 1807-1813 (lines=7) @@ | ||
| 1804 | $campos_por_linha -= 2; |
|
| 1805 | } |
|
| 1806 | ||
| 1807 | if ($this->orientacao == 'P') { |
|
| 1808 | $maxW = $this->wPrint; |
|
| 1809 | $title_size = 31; |
|
| 1810 | } else { |
|
| 1811 | $maxW = $this->wPrint - $this->wCanhoto; |
|
| 1812 | $title_size = 40; |
|
| 1813 | } |
|
| 1814 | $w = $maxW / $campos_por_linha; |
|
| 1815 | ||
| 1816 | $aFont = array('font'=>$this->fontePadrao, 'size'=>7, 'style'=>'B'); |
|
| @@ 2265-2273 (lines=9) @@ | ||
| 2262 | //##################################################################### |
|
| 2263 | //DADOS DOS PRODUTOS / SERVIÇOS |
|
| 2264 | $texto = "DADOS DOS PRODUTOS / SERVIÇOS "; |
|
| 2265 | if ($this->orientacao == 'P') { |
|
| 2266 | $w = $this->wPrint; |
|
| 2267 | } else { |
|
| 2268 | if ($nInicio < 2) { // primeira página |
|
| 2269 | $w = $this->wPrint - $this->wCanhoto; |
|
| 2270 | } else { // páginas seguintes |
|
| 2271 | $w = $this->wPrint; |
|
| 2272 | } |
|
| 2273 | } |
|
| 2274 | $h = 4; |
|
| 2275 | $aFont = array('font'=>$this->fontePadrao, 'size'=>7, 'style'=>'B'); |
|
| 2276 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| @@ 2709-2714 (lines=6) @@ | ||
| 2706 | */ |
|
| 2707 | protected function pRodape($x, $y) |
|
| 2708 | { |
|
| 2709 | if ($this->orientacao == 'P') { |
|
| 2710 | $w = $this->wPrint; |
|
| 2711 | } else { |
|
| 2712 | $w = $this->wPrint-$this->wCanhoto; |
|
| 2713 | $x = $this->wCanhoto; |
|
| 2714 | } |
|
| 2715 | $aFont = array('font'=>$this->fontePadrao, 'size'=>6, 'style'=>'I'); |
|
| 2716 | $texto = "Impresso em ". date('d/m/Y') . " as " . date('H:i:s'); |
|
| 2717 | $this->pTextBox($x, $y, $w, 0, $texto, $aFont, 'T', 'L', false); |
|