コード例 #1
0
    $historico1 = MensagemCarne($H_ANOUSU, $tipo_debito, $dtbase, $ver_matric, $sArreMatric);
    $historico .= "\n" . $historico1;
}
$pdf1->historico = $historico;
$pdf1->histparcel = @$histparcela;
$pdf1->historico = $historico . "\n \n" . $k00_msgrecibo;
$pdf1->histparcel = @$histparcela;
$pdf1->dtvenc = $datavencimento;
$pdf1->numpre = $numpre;
$pdf1->valtotal = db_formatar(@$valor_parm, 'f');
if (isset($k00_msgparc)) {
    $pdf1->k00_msgparc = $k00_msgparc;
}
$pdf1->linhadigitavel = $linhadigitavel;
$pdf1->codigobarras = $codigobarras;
$pdf1->texto = db_getsession('DB_login') . ' - ' . date("d-m-Y - H-i") . '   ' . db_base_ativa();
$pdf1->descr3_1 = trim(pg_result($Identificacao, 0, "z01_numcgm")) . "-" . trim(pg_result($Identificacao, 0, "z01_nome"));
// contribuinte
$pdf1->descr3_2 = trim(pg_result($Identificacao, 0, "z01_ender")) . ', ' . pg_result($Identificacao, 0, "z01_numero") . ' ' . trim(pg_result($Identificacao, 0, "z01_compl")) . (strlen(trim(pg_result($Identificacao, 0, "z01_bairro"))) > 0 ? "/" : "") . trim(pg_result($Identificacao, 0, "z01_bairro"));
// endereco
$pdf1->predescr3_1 = trim(pg_result($Identificacao, 0, "z01_nome"));
// contribuinte
$pdf1->predescr3_2 = trim(pg_result($Identificacao, 0, "z01_ender")) . ', ' . pg_result($Identificacao, 0, "z01_numero") . ' ' . trim(pg_result($Identificacao, 0, "z01_compl"));
// endereco
$pdf1->bairropri = $j13_descr;
// municipio
$pdf1->munic = trim(pg_result($Identificacao, 0, "z01_munic"));
$pdf1->premunic = trim(pg_result($Identificacao, 0, "z01_munic"));
$pdf1->cep = trim(pg_result($Identificacao, 0, "z01_cep"));
$pdf1->precep = trim(pg_result($Identificacao, 0, "z01_cep"));
$pdf1->cgccpf = trim(@pg_result($Identificacao, 0, "z01_cgccpf"));
コード例 #2
0
$this->objpdf->text(101, 207, $this->numpre);
$this->objpdf->text(153, 207, $this->valtotal);
$this->objpdf->SetDash(0.8, 0.8);
$this->objpdf->line(5, 242.5, 205, 242.5);
$this->objpdf->SetDash();
$this->objpdf->setfillcolor(255, 255, 255);
$this->objpdf->Roundedrect(10, 244, 190, 46, 2, 'DF', '1234');
$this->objpdf->setfont('Arial', '', 12);
$this->objpdf->setfillcolor(0, 0, 0);
$this->objpdf->Image('imagens/files/' . $this->logo, 12, 200, 25);
$this->objpdf->text(60, 218, $this->linhadigitavel);
$this->objpdf->int25(60, 220, $this->codigobarras, 15, 0.341);
$this->objpdf->setfillcolor(245);
$this->objpdf->Roundedrect(40, 250, 48, 10, 2, 'DF', '1234');
$this->objpdf->Roundedrect(93, 250, 48, 10, 2, 'DF', '1234');
$this->objpdf->Roundedrect(146, 250, 48, 10, 2, 'DF', '1234');
$this->objpdf->setfont('Arial', '', 6);
$this->objpdf->text(42, 252, 'Vencimento');
$this->objpdf->text(95, 252, 'Código de Arrecadação');
$this->objpdf->text(148, 252, 'Valor a Pagar');
$this->objpdf->setfont('Arial', '', 10);
$this->objpdf->text(48, 257, $this->dtvenc);
$this->objpdf->text(101, 257, $this->numpre);
$this->objpdf->text(153, 257, $this->valtotal);
$this->objpdf->Image('imagens/files/' . $this->logo, 12, 250, 25);
$this->objpdf->SetFont('Arial', '', 5);
$this->objpdf->text(10, $this->objpdf->h - 2, 'Base: ' . db_base_ativa());
$this->objpdf->setfillcolor(0, 0, 0);
$this->objpdf->setfont('Arial', '', 12);
$this->objpdf->text(60, 268, $this->linhadigitavel);
$this->objpdf->int25(60, 270, $this->codigobarras, 15, 0.341);