| @@ 399-416 (lines=18) @@ | ||
| 396 | $this->textBox($x, $y1, $w-2, $h, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 397 | $retVal = $sY; |
|
| 398 | //indicar sem valor |
|
| 399 | if ($this->tpAmb != 1) { |
|
| 400 | $x = 10; |
|
| 401 | if ($this->orientacao == 'P') { |
|
| 402 | $y = round($this->hPrint*2/3, 0); |
|
| 403 | } else { |
|
| 404 | $y = round($this->hPrint/2, 0); |
|
| 405 | } |
|
| 406 | $h = 5; |
|
| 407 | $w = $maxW-(2*$x); |
|
| 408 | $this->pdf->setTextColor(90, 90, 90); |
|
| 409 | $texto = "SEM VALOR FISCAL"; |
|
| 410 | $aFont = array('font'=>$this->fontePadrao,'size'=>48,'style'=>'B'); |
|
| 411 | $this->textBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 412 | $aFont = array('font'=>$this->fontePadrao,'size'=>30,'style'=>'B'); |
|
| 413 | $texto = "AMBIENTE DE HOMOLOGAÇÃO"; |
|
| 414 | $this->textBox($x, $y+14, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 415 | $this->pdf->setTextColor(0, 0, 0); |
|
| 416 | } |
|
| 417 | return $retVal; |
|
| 418 | } |
|
| 419 | ||
| @@ 474-491 (lines=18) @@ | ||
| 471 | $this->pTextBox($x+2, $sY+2, $maxW-2, 15, $texto, $aFont, 'T', 'L', 0, '', false); |
|
| 472 | $retVal = $sY+2; |
|
| 473 | } |
|
| 474 | if ($this->tpAmb != 1) { |
|
| 475 | $x = 10; |
|
| 476 | if ($this->orientacao == 'P') { |
|
| 477 | $y = round($this->hPrint*2/3, 0); |
|
| 478 | } else { |
|
| 479 | $y = round($this->hPrint/2, 0); |
|
| 480 | } |
|
| 481 | $h = 5; |
|
| 482 | $w = $maxW-(2*$x); |
|
| 483 | $this->pdf->setTextColor(90, 90, 90); |
|
| 484 | $texto = "SEM VALOR FISCAL"; |
|
| 485 | $aFont = array('font'=>$this->fontePadrao, 'size'=>48, 'style'=>'B'); |
|
| 486 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 487 | $aFont = array('font'=>$this->fontePadrao, 'size'=>30, 'style'=>'B'); |
|
| 488 | $texto = "AMBIENTE DE HOMOLOGAÇÃO"; |
|
| 489 | $this->pTextBox($x, $y+14, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 490 | $this->pdf->setTextColor(0, 0, 0); |
|
| 491 | } |
|
| 492 | return $retVal; |
|
| 493 | } |
|
| 494 | ||
| @@ 444-469 (lines=26) @@ | ||
| 441 | 'style' => 'B' |
|
| 442 | ); |
|
| 443 | $this->pTextBox($x + 2, $y + 2, $maxW - 2, 150, $texto, $aFont, 'T', 'L', 0, '', false); |
|
| 444 | if ($this->tpAmb != 1) { |
|
| 445 | $x = 10; |
|
| 446 | if ($this->orientacao == 'P') { |
|
| 447 | $y = round($this->hPrint * 2 / 3, 0); |
|
| 448 | } else { |
|
| 449 | $y = round($this->hPrint / 2, 0); |
|
| 450 | } |
|
| 451 | $h = 5; |
|
| 452 | $w = $maxW - (2 * $x); |
|
| 453 | $this->pdf->SetTextColor(90, 90, 90); |
|
| 454 | $texto = "SEM VALOR FISCAL"; |
|
| 455 | $aFont = array( |
|
| 456 | 'font' => $this->fontePadrao, |
|
| 457 | 'size' => 48, |
|
| 458 | 'style' => 'B' |
|
| 459 | ); |
|
| 460 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 461 | $aFont = array( |
|
| 462 | 'font' => $this->fontePadrao, |
|
| 463 | 'size' => 30, |
|
| 464 | 'style' => 'B' |
|
| 465 | ); |
|
| 466 | $texto = "AMBIENTE DE HOMOLOGAÇÃO"; |
|
| 467 | $this->pTextBox($x, $y + 14, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 468 | $this->pdf->SetTextColor(0, 0, 0); |
|
| 469 | } |
|
| 470 | } |
|
| 471 | ||
| 472 | /** |
|
| @@ 475-492 (lines=18) @@ | ||
| 472 | $retVal = $sY + 2; |
|
| 473 | } |
|
| 474 | // indicar sem valor |
|
| 475 | if ($this->tpAmb != 1) { |
|
| 476 | $x = 10; |
|
| 477 | if ($this->orientacao == 'P') { |
|
| 478 | $y = round($this->hPrint * 2 / 3, 0); |
|
| 479 | } else { |
|
| 480 | $y = round($this->hPrint / 2, 0); |
|
| 481 | } |
|
| 482 | $h = 5; |
|
| 483 | $w = $maxW - (2 * $x); |
|
| 484 | $this->pdf->setTextColor(90, 90, 90); |
|
| 485 | $texto = "SEM VALOR FISCAL"; |
|
| 486 | $aFont = ['font' => $this->fontePadrao,'size' => 48,'style' => 'B']; |
|
| 487 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 488 | $aFont = ['font' => $this->fontePadrao,'size' => 30,'style' => 'B']; |
|
| 489 | $texto = "AMBIENTE DE HOMOLOGAÇÃO"; |
|
| 490 | $this->pTextBox($x, $y + 14, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 491 | $this->pdf->setTextColor(0, 0, 0); |
|
| 492 | } |
|
| 493 | return $retVal; |
|
| 494 | } |
|
| 495 | ||
| @@ 486-511 (lines=26) @@ | ||
| 483 | ); |
|
| 484 | //$this->pTextBox($x + 2, $y + 2, $maxW - 2, 150, $texto, $aFont, 'T', 'L', 0, '', false); |
|
| 485 | $maxW = $this->wPrint; |
|
| 486 | if ($this->tpAmb != 1) { |
|
| 487 | $x = 10; |
|
| 488 | if ($this->orientacao == 'P') { |
|
| 489 | $y = round($this->hPrint * 2 / 3, 0); |
|
| 490 | } else { |
|
| 491 | $y = round($this->hPrint * 2 / 3, 0); |
|
| 492 | } |
|
| 493 | $h = 5; |
|
| 494 | $w = $maxW - (2 * $x); |
|
| 495 | $this->pdf->SetTextColor(90, 90, 90); |
|
| 496 | $texto = "SEM VALOR FISCAL"; |
|
| 497 | $aFont = array( |
|
| 498 | 'font' => $this->fontePadrao, |
|
| 499 | 'size' => 48, |
|
| 500 | 'style' => 'B' |
|
| 501 | ); |
|
| 502 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 503 | $aFont = array( |
|
| 504 | 'font' => $this->fontePadrao, |
|
| 505 | 'size' => 30, |
|
| 506 | 'style' => 'B' |
|
| 507 | ); |
|
| 508 | $texto = "AMBIENTE DE HOMOLOGAÇÃO"; |
|
| 509 | $this->pTextBox($x, $y + 14, $w, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 510 | $this->pdf->SetTextColor(0, 0, 0); |
|
| 511 | } |
|
| 512 | } |
|
| 513 | ||
| 514 | /** |
|