FPDF Gera arquivo no Chrome mas não gera no IE e Firefox
Estou utilizando a classe FPDF.. com o meu código do jeito que está, estou conseguindo gerar o PDF sem erros no Chrome, com todos os parâmetros do Output ();
Porém no IE e no Firefox não exibido o PDF, no IE mostra um erro de problemas com o pdf, e no Firefox o pdf simplesmente fica carregando e não mostra nada.
Segue abaixo o código:
<?php
ini_set( 'display_errors', TRUE );
error_reporting( E_ALL );
//ini_set("memory_limit","512M");
//set_time_limit(220);
ob_start();
include('connect.php');
require('fpdf/fpdf.php');
$pdf = new FPDF();
$pdf->Open();
$pdf->AddPage();
$login=$_POST['login'];
$mes_ano_comp=$_POST['mes_ano_comp'];
$total_vencimento=0;
$total_desconto=0;
$total_vencimento_reg2=0;
$total_desconto_reg2=0;
$sql=mysql_query("SELECT a.*,b.* FROM tb_holerite_reg1 AS a, tb_usuario AS b WHERE a.cpf=b.login AND a.cpf='$login' AND a.mes_ano_comp='$mes_ano_comp'");
$row = mysql_fetch_array($sql);
$ref_tabelas=$row['ref_tabelas'];
$empresa=$row['nome_empresa'];
$mes_ano_comp=$row['mes_ano_comp'];
$matricula_servidor=$row['matricula_servidor'];
$nome_funcionario=$row['nome_funcionario'];
$ref_salarial=$row['ref_salarial'];
$nome_divisao=$row['nome_divisao'];
$data_admissao=$row['data_admissao'];
$pis_pasep=$row['pis_pasep'];
$cargo_funcao=$row['cargo_funcao'];
$cpf=$row['cpf'];
$nome_local_trabalho=$row['nome_local_trabalho'];
$nome_subdivisao=$row['nome_divisao'];
$salario_base=$row['salario_base'];
$valor_fgts=$row['valor_fgts'];
$base_irrf=$row['base_irrf'];
$pdf->Cell(170, 28, " ", 1, 0, 'C');
$pdf->Image("img/logo.png", 12, 12, 30, 9,'PNG');
$pdf->SetXY(60, 11);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(0, 6, utf8_decode('Recibo de Pagamento de Salário'),0,3);
$pdf->SetXY(50, 16);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 6,'Empresa:',0,3);
$pdf->SetXY(68, 16);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"$empresa",0,3);
$pdf->SetXY(49, 21);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 6,utf8_decode('Endereço:'),0,3);
$pdf->SetXY(68, 21);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"RUA FREI BENJAMIM DE BORNO, 05, CENTRO",0,3);
$pdf->SetXY(48, 26);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 6,'Cidade/UF',0,3);
$pdf->SetXY(68, 26);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"GRAJAU-MA",0,3);
$pdf->SetXY(150, 26);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(0, 6,utf8_decode('Mês/Ano'),0,3);
$pdf->SetXY(55, 31);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 6,'CNPJ',0,3);
$pdf->SetXY(68, 31);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"06.377.063/0001-48",0,3);
$pdf->SetXY(132, 31);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(0, 6,"Mensal",0,3);
$pdf->SetXY(151, 31);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(0, 6,"$mes_ano_comp",0,3);
$pdf->SetXY(10, 38);
$pdf->Cell(170, 28, " ", 1, 0, 'C');
$pdf->SetXY(12, 39);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,utf8_decode('Matrícula'),0,3);
$pdf->SetXY(28, 39);
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(0, 6,"$matricula_servidor",0,3);
$pdf->SetXY(50, 39);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,'Nome',0,3);
$pdf->SetXY(61, 39);
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(0, 6,utf8_decode("$nome_funcionario"),0,3);
$pdf->SetXY(130, 39);
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(0, 6,'Ref.Sal.',0,3);
$pdf->SetXY(140, 39);
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(0, 6,"$ref_salarial",0,3);
$pdf->SetXY(155, 39);
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(0, 6,'C.B.O',0,3);
$pdf->SetXY(165, 39);
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(0, 6,"?",0,3);
$pdf->SetXY(12, 44);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,utf8_decode('Divisão'),0,3);
$pdf->SetXY(26, 44);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,utf8_decode("$nome_divisao"),0,3);
$pdf->SetXY(100, 44);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,utf8_decode('Admissão'),0,3);
$pdf->SetXY(117, 44);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"$data_admissao",0,3);
$pdf->SetXY(140, 44);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,'Pis/Pasep',0,3);
$pdf->SetXY(158, 44);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"$pis_pasep",0,3);
$pdf->SetXY(12, 49);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,'Cargo',0,3);
$pdf->SetXY(26, 49);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,utf8_decode("$cargo_funcao"),0,3);
$pdf->SetXY(100, 49);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,'CPF',0,3);
$pdf->SetXY(108, 49);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"$cpf",0,3);
$pdf->SetXY(12, 54);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,'Local de Trabalho',0,3);
$pdf->SetXY(42, 54);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,utf8_decode("$nome_local_trabalho"),0,3);
$pdf->SetXY(95, 54);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,utf8_decode('Tipo Admissão'),0,3);
$pdf->SetXY(120, 54);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"$nome_subdivisao",0,3);
$pdf->SetXY(95, 59);
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(0, 6,utf8_decode('Agência'),0,3);
$pdf->SetXY(110, 59);
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(0, 6,'0723 ?',0,3);
$pdf->SetXY(130, 59);
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(0, 6,utf8_decode('Conta'),0,3);
$pdf->SetXY(140, 59);
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(0, 6,'13860 - 6 ?',0,3);
$pdf->SetXY(10, 66);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(15, 5, utf8_decode("Cód. "), 1, 0, 'C');
$pdf->SetXY(25, 66);
$pdf->Cell(70, 5, utf8_decode("Descrição "), 1, 0, 'P');
$pdf->SetXY(95, 66);
$pdf->Cell(25, 5, utf8_decode("Referência "), 1, 0, 'P');
$pdf->SetXY(120, 66);
$pdf->Cell(30, 5, utf8_decode("Vencimentos "), 1, 0, 'R');
$pdf->SetXY(150, 66);
$pdf->Cell(30, 5, utf8_decode("Descontos "), 1, 0, 'R');
$sql_reg2=mysql_query("SELECT a.*,b.* FROM tb_holerite_reg1 AS a, tb_holerite_reg2 AS b WHERE a.ref_tabelas=b.ref_tabelas AND b.ref_tabelas='$ref_tabelas'");
$valor=66;
while($row_reg2 = mysql_fetch_array($sql_reg2)){
$codigo_evento=$row_reg2['codigo_evento'];
$descricao_evento=$row_reg2['descricao_evento'];
$ref_evento=$row_reg2['ref_evento'];
$vencimento=$row_reg2['vencimento'];
$desconto=$row_reg2['desconto'];
$total_vencimento=($total_vencimento+$vencimento);
$total_desconto=($total_desconto+$desconto);
$valor_liquido=($total_vencimento-$total_desconto);
$total_vencimento=number_format($total_vencimento, 2, '.', '');
$total_desconto=number_format($total_desconto, 2, '.', '');
$valor_liquido=number_format($valor_liquido, 2, '.', '');
$valor=$valor+5;
$pdf->SetXY(10, $valor);
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(15, 5, "$codigo_evento", 0, 0, 'C');
$pdf->SetXY(25, $valor);
$pdf->Cell(70, 5, "$descricao_evento", 0, 0, 'P');
$pdf->SetXY(95, $valor);
$pdf->Cell(25, 5, "$ref_evento", 0 ,0, 'R');
$pdf->SetXY(120, $valor);
$pdf->Cell(30, 5, "$vencimento", 0 ,0, 'R');
$pdf->SetTextColor(255,0,0);
$pdf->SetXY(150, $valor);
$pdf->Cell(30, 5, "$desconto", 0,0, 'R');
$pdf->SetTextColor(0,0,0);
}
$pdf->SetXY(10, 105);
$pdf->SetFont('Arial', '', 9);
$pdf->Cell(85, 20, '', 1, 0, 'C');
$pdf->SetXY(95, 105);
$pdf->Cell(85, 10, '', 1, 0, 'C');
$pdf->SetXY(95, 105);
$pdf->Cell(15, 5, 'Margem', 0, 0, 'P');
$pdf->SetXY(110, 105);
$pdf->Cell(35, 5, 'Total de Vencimentos', 0, 0, 'R');
$pdf->SetXY(145, 105);
$pdf->Cell(35, 5, 'Total de Descontos', 0, 0, 'R');
$pdf->SetXY(95, 110);
$pdf->Cell(15, 5, '0.00 ?', 0, 0, 'P');
$pdf->SetXY(110, 110);
$pdf->Cell(35, 5, "$total_vencimento", 0, 0, 'R');
$pdf->SetXY(145, 110);
$pdf->SetTextColor(255,0,0);
$pdf->Cell(35, 5, "$total_desconto", 0, 0, 'R');
$pdf->SetTextColor(0,0,0);
$pdf->SetXY(95, 115);
$pdf->Cell(85, 10, '', 1, 0, 'C');
$pdf->SetXY(95, 118);
$pdf->Cell(35, 5, utf8_decode('Valor Líquido'), 0, 0, 'R');
$pdf->SetXY(100, 118);
$pdf->Image("img/seta.jpg", 135, 118, 7, 5,'JPG');
$pdf->SetXY(144, 118);
$pdf->Cell(35, 5, "$valor_liquido", 0, 0, 'R');
$pdf->SetXY(10, 125);
$pdf->Cell(170, 10, '', 1, 0, 'C');
$pdf->SetXY(10, 125);
$pdf->Cell(34, 5, utf8_decode('Salário Base'), 0, 0, 'C');
$pdf->SetXY(44, 125);
$pdf->Cell(34, 5, utf8_decode('Base Previdência'), 0, 0, 'C');
$pdf->SetXY(78, 125);
$pdf->Cell(34, 5, utf8_decode('Depte p/IRRF'), 0, 0, 'C');
$pdf->SetXY(112, 125);
$pdf->Cell(34, 5, utf8_decode('FGTS do Mês'), 0, 0, 'C');
$pdf->SetXY(146, 125);
$pdf->Cell(34, 5, utf8_decode('Base IRRF'), 0, 0, 'C');
$pdf->SetFont('Arial', '', 7);
$pdf->SetXY(10, 130);
$pdf->Cell(34, 5, "$salario_base", 0, 0, 'C');
$pdf->SetXY(44, 130);
$pdf->Cell(34, 5, "$total_vencimento", 0, 0, 'C');
$pdf->SetXY(78, 130);
$pdf->Cell(34, 5, '0', 0, 0, 'C');
$pdf->SetXY(112, 130);
$pdf->Cell(34, 5, "$valor_fgts", 0, 0, 'C');
$pdf->SetXY(146, 130);
$pdf->Cell(34, 5, "$base_irrf", 0, 0, 'C');
$pdf->Image("img/rodape_holerite.png", 182, 8, 25, 128,'PNG');
/********************************** 2ª VIA **********************************/
$pdf->SetXY(10, 146);
$pdf->Cell(170, 28, " ", 1, 0, 'C');
$pdf->Image("img/logo.png", 12, 147, 30, 9,'PNG');
$pdf->SetXY(60, 147);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(0, 6, utf8_decode('Recibo de Pagamento de Salário'),0,3);
$pdf->SetXY(50, 152);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 6,'Empresa:',0,3);
$pdf->SetXY(68, 152);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"$empresa",0,3);
$pdf->SetXY(49, 158);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 6,utf8_decode('Endereço:'),0,3);
$pdf->SetXY(68, 158);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"RUA FREI BENJAMIM DE BORNO, 05, CENTRO",0,3);
$pdf->SetXY(48, 163);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 6,'Cidade/UF',0,3);
$pdf->SetXY(68, 163);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"GRAJAU-MA",0,3);
$pdf->SetXY(150, 163);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(0, 6,utf8_decode('Mês/Ano'),0,3);
$pdf->SetXY(55, 169);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 6,'CNPJ',0,3);
$pdf->SetXY(68, 169);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"06.377.063/0001-48",0,3);
$pdf->SetXY(132, 169);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(0, 6,"Mensal",0,3);
$pdf->SetXY(151, 169);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(0, 6,"$mes_ano_comp",0,3);
$pdf->SetXY(10, 174);
$pdf->Cell(170, 28, " ", 1, 0, 'C');
$pdf->SetXY(12, 174);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,utf8_decode('Matrícula'),0,3);
$pdf->SetXY(28, 174);
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(0, 6,"$matricula_servidor",0,3);
$pdf->SetXY(50, 174);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,'Nome',0,3);
$pdf->SetXY(61, 174);
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(0, 6,utf8_decode("$nome_funcionario"),0,3);
$pdf->SetXY(130, 174);
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(0, 6,'Ref.Sal.',0,3);
$pdf->SetXY(140, 174);
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(0, 6,"$ref_salarial",0,3);
$pdf->SetXY(155, 174);
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(0, 6,'C.B.O',0,3);
$pdf->SetXY(165, 174);
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(0, 6,"?",0,3);
$pdf->SetXY(12, 179);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,utf8_decode('Divisão'),0,3);
$pdf->SetXY(26, 179);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,utf8_decode("$nome_divisao"),0,3);
$pdf->SetXY(100, 179);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,utf8_decode('Admissão'),0,3);
$pdf->SetXY(117, 179);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"$data_admissao",0,3);
$pdf->SetXY(140, 179);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,'Pis/Pasep',0,3);
$pdf->SetXY(158, 179);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"$pis_pasep",0,3);
$pdf->SetXY(12, 184);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,'Cargo',0,3);
$pdf->SetXY(26, 184);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,utf8_decode("$cargo_funcao"),0,3);
$pdf->SetXY(100, 184);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,'CPF',0,3);
$pdf->SetXY(108, 184);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"$cpf",0,3);
$pdf->SetXY(12, 189);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,'Local de Trabalho',0,3);
$pdf->SetXY(42, 189);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,utf8_decode("$nome_local_trabalho"),0,3);
$pdf->SetXY(95, 189);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6,utf8_decode('Tipo Admissão'),0,3);
$pdf->SetXY(120, 189);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 6,"$nome_subdivisao",0,3);
$pdf->SetXY(95, 197);
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(0, 6,utf8_decode('Agência'),0,3);
$pdf->SetXY(110, 197);
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(0, 6,'0723 ?',0,3);
$pdf->SetXY(130, 197);
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(0, 6,utf8_decode('Conta'),0,3);
$pdf->SetXY(140, 197);
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(0, 6,'13860 - 6 ?',0,3);
$pdf->SetXY(10, 202);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(15, 5, utf8_decode("Cód. "), 1, 0, 'C');
$pdf->SetXY(25, 202);
$pdf->Cell(70, 5, utf8_decode("Descrição "), 1, 0, 'P');
$pdf->SetXY(95, 202);
$pdf->Cell(25, 5, utf8_decode("Referência "), 1, 0, 'P');
$pdf->SetXY(120, 202);
$pdf->Cell(30, 5, utf8_decode("Vencimentos "), 1, 0, 'R');
$pdf->SetXY(150, 202);
$pdf->Cell(30, 5, utf8_decode("Descontos "), 1, 0, 'R');
$sql_reg2=mysql_query("SELECT a.*,b.* FROM tb_holerite_reg1 AS a, tb_holerite_reg2 AS b WHERE a.ref_tabelas=b.ref_tabelas AND b.ref_tabelas='$ref_tabelas'");
$valor_reg2=202;
while($row_reg2 = mysql_fetch_array($sql_reg2)){
$codigo_evento_reg2=$row_reg2['codigo_evento'];
$descricao_evento_reg2=$row_reg2['descricao_evento'];
$ref_evento_reg2=$row_reg2['ref_evento'];
$vencimento_reg2=$row_reg2['vencimento'];
$desconto_reg2=$row_reg2['desconto'];
$total_vencimento_reg2=($total_vencimento_reg2+$vencimento_reg2);
$total_desconto_reg2=($total_desconto_reg2+$desconto_reg2);
$valor_liquido_reg2=($total_vencimento_reg2-$total_desconto_reg2);
$total_vencimento_reg2=number_format($total_vencimento_reg2, 2, '.', '');
$total_desconto_reg2=number_format($total_desconto_reg2, 2, '.', '');
$valor_liquido_reg2=number_format($valor_liquido_reg2, 2, '.', '');
$valor_reg2=$valor_reg2+5;
$pdf->SetXY(10, $valor_reg2);
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(15, 5, "$codigo_evento_reg2", 0, 0, 'C');
$pdf->SetXY(25, $valor_reg2);
$pdf->Cell(70, 5, "$descricao_evento_reg2", 0, 0, 'P');
$pdf->SetXY(95, $valor_reg2);
$pdf->Cell(25, 5, "$ref_evento_reg2", 0 ,0, 'R');
$pdf->SetXY(120, $valor_reg2);
$pdf->Cell(30, 5, "$vencimento_reg2", 0 ,0, 'R');
$pdf->SetTextColor(255,0,0);
$pdf->SetXY(150, $valor_reg2);
$pdf->Cell(30, 5, "$desconto_reg2", 0,0, 'R');
$pdf->SetTextColor(0,0,0);
}
$pdf->SetXY(10, 241);
$pdf->SetFont('Arial', '', 9);
$pdf->Cell(85, 20, '', 1, 0, 'C');
$pdf->SetXY(95, 241);
$pdf->Cell(85, 10, '', 1, 0, 'C');
$pdf->SetXY(95, 241);
$pdf->Cell(15, 5, 'Margem', 0, 0, 'P');
$pdf->SetXY(110, 241);
$pdf->Cell(35, 5, 'Total de Vencimentos', 0, 0, 'R');
$pdf->SetXY(145, 241);
$pdf->Cell(35, 5, 'Total de Descontos', 0, 0, 'R');
$pdf->SetXY(95, 246);
$pdf->Cell(15, 5, '0.00 ?', 0, 0, 'P');
$pdf->SetXY(110, 246);
$pdf->Cell(35, 5, "$total_vencimento_reg2", 0, 0, 'R');
$pdf->SetXY(145, 246);
$pdf->SetTextColor(255,0,0);
$pdf->Cell(35, 5, "$total_desconto_reg2", 0, 0, 'R');
$pdf->SetTextColor(0,0,0);
$pdf->SetXY(95, 251);
$pdf->Cell(85, 10, '', 1, 0, 'C');
$pdf->SetXY(95, 254);
$pdf->Cell(35, 5, utf8_decode('Valor Líquido'), 0, 0, 'R');
$pdf->SetXY(100, 256);
$pdf->Image("img/seta.jpg", 135, 254, 7, 5,'JPG');
$pdf->SetXY(144, 254);
$pdf->Cell(35, 5, "$valor_liquido_reg2", 0, 0, 'R');
$pdf->SetXY(10, 261);
$pdf->Cell(170, 10, '', 1, 0, 'C');
$pdf->SetXY(10, 261);
$pdf->Cell(34, 5, utf8_decode('Salário Base'), 0, 0, 'C');
$pdf->SetXY(44, 261);
$pdf->Cell(34, 5, utf8_decode('Base Previdência'), 0, 0, 'C');
$pdf->SetXY(78, 261);
$pdf->Cell(34, 5, utf8_decode('Depte p/IRRF'), 0, 0, 'C');
$pdf->SetXY(112, 261);
$pdf->Cell(34, 5, utf8_decode('FGTS do Mês'), 0, 0, 'C');
$pdf->SetXY(146, 261);
$pdf->Cell(34, 5, utf8_decode('Base IRRF'), 0, 0, 'C');
$pdf->SetFont('Arial', '', 7);
$pdf->SetXY(10, 266);
$pdf->Cell(34, 5, "$salario_base", 0, 0, 'C');
$pdf->SetXY(44, 266);
$pdf->Cell(34, 5, "$total_vencimento_reg2", 0, 0, 'C');
$pdf->SetXY(78, 266);
$pdf->Cell(34, 5, '0', 0, 0, 'C');
$pdf->SetXY(112, 266);
$pdf->Cell(34, 5, "$valor_fgts", 0, 0, 'C');
$pdf->SetXY(146, 266);
$pdf->Cell(34, 5, "$base_irrf", 0, 0, 'C');
$pdf->Image("img/rodape_holerite.png", 182, 144, 25, 128,'PNG');
ob_clean ();
$pdf->Output();
?>Discussão (0)
Carregando comentários...