POST: /home/sindconvenioscard.com.br/public/wp-content/plugins/php-everywhere/shortcode.php(15) : eval()'d code:6: array(0) { } Fatal error: Uncaught Exception: FPDF error: Some data has already been output, can't send PDF file (output started at /home/sindconvenioscard.com.br/public/wp-includes/class.wp-styles.php:290) in /home/sindconvenioscard.com.br/public/wp-content/themes/enfold/fpdf/fpdf.php on line 271 Exception: FPDF error: Some data has already been output, can't send PDF file (output started at /home/sindconvenioscard.com.br/public/wp-includes/class.wp-styles.php:290) in /home/sindconvenioscard.com.br/public/wp-content/themes/enfold/fpdf/fpdf.php on line 271 Call Stack: 0.0001 361696 1. {main}() /home/sindconvenioscard.com.br/public/index.php:0 0.0001 363480 2. require('/home/sindconvenioscard.com.br/public/wp-blog-header.php') /home/sindconvenioscard.com.br/public/index.php:17 0.4107 48712392 3. require_once('/home/sindconvenioscard.com.br/public/wp-includes/template-loader.php') /home/sindconvenioscard.com.br/public/wp-blog-header.php:19 0.4147 48978496 4. include('/home/sindconvenioscard.com.br/public/wp-content/themes/enfold/page.php') /home/sindconvenioscard.com.br/public/wp-includes/template-loader.php:106 0.4963 51949800 5. get_template_part() /home/sindconvenioscard.com.br/public/wp-content/themes/enfold/page.php:30 0.4963 51950384 6. locate_template() /home/sindconvenioscard.com.br/public/wp-includes/general-template.php:204 0.4964 51950496 7. load_template() /home/sindconvenioscard.com.br/public/wp-includes/template.php:676 0.4965 51963816 8. require('/home/sindconvenioscard.com.br/public/wp-content/themes/enfold/includes/loop-page.php') /home/sindconvenioscard.com.br/public/wp-includes/template.php:732 0.4988 52021720 9. the_content() /home/sindconvenioscard.com.br/public/wp-content/themes/enfold/includes/loop-page.php:27 0.4988 52021832 10. apply_filters() /home/sindconvenioscard.com.br/public/wp-includes/post-template.php:253 0.4988 52022232 11. WP_Hook->apply_filters() /home/sindconvenioscard.com.br/public/wp-includes/plugin.php:206 0.4994 52024864 12. do_shortcode() /home/sindconvenioscard.com.br/public/wp-includes/class-wp-hook.php:287 0.4995 52034760 13. preg_replace_callback() /home/sindconvenioscard.com.br/public/wp-includes/shortcodes.php:218 0.4995 52035384 14. do_shortcode_tag() /home/sindconvenioscard.com.br/public/wp-includes/shortcodes.php:218 0.4995 52035384 15. php_everywhere_func() /home/sindconvenioscard.com.br/public/wp-includes/shortcodes.php:343 0.4997 52078384 16. eval(' ?>, mas aqui você pode pegar o que // precisar de algum DB, ou mesmo misturar as técnicas. if( empty( $nome ) ) $nome = "Anônimo da Silva"; if( empty( $horas ) ) $horas = 24; if( empty( $data ) ) $data = "17 de agosto de 2014"; // e finalmente, geramos o PDF: class PDF extends FPDF { //Método Header que estiliza o cabeçalho da página function Header() { //insere e posiciona a imagem/logomarca $this->Image(FPDF_PATH.'logo.png',10,8,33); //Informa a fonte, seu estilo e seu tamanho $this->SetFont('Arial','B',12); //Informa o tamanho do box que receberá o cabeçalho //o texto que ele conterá, suas bordas e o alinhaento do texto $this->Ln(5); $this->Cell(80); $this->SetXY( 10, 20 ); $this->Cell( 190, 0, utf8_decode("Pedido de Cartão"), 0, 0, 'C'); $this->Ln(20); } } $pdf = new PDF('P','mm','A4'); $pdf->AddPage(); $pdf->SetFont('Arial','B', 14); $pdf->SetFont('Arial','', 12); $pdf->SetXY( 10, 30 ); $content = utf8_decode("Nome: "); $content = $content.utf8_decode($nome); $content = $content.utf8_decode("\n"); $content = $content.utf8_decode("CPF: "); $content = $content.utf8_decode($cpf); $content = $content.utf8_decode("\n"); $content = $content.utf8_decode("RG: "); $content = $content.utf8_decode($rg); $content = $content.utf8_decode("\n"); $content = $content.utf8_decode("Data de Nascimento: "); $content = $content.utf8_decode($data_nasc); $content = $content.utf8_decode("\n"); $content = $content.utf8_decode("E-mail: "); $content = $content.utf8_decode($email); $content = $content.utf8_decode("\n"); $content = $content.utf8_decode("Endereço: "); $content = $content.utf8_decode($endereco); $content = $content.utf8_decode("\n"); $content = $content.utf8_decode("Telefone Celular: "); $content = $content.utf8_decode($celular); $pdf->MultiCell( 190, 6, $content); $pdf->Line(50, 225, 210-50, 225); $pdf->SetY(230 ); $pdf->MultiCell(0,6, utf8_decode($nome),0,'C'); $pdf->Output('D'); ob_end_flush(); ?> Output() /home/sindconvenioscard.com.br/public/wp-content/plugins/php-everywhere/shortcode.php(15) : eval()'d code:81 0.5383 52651352 18. PDF->_checkoutput() /home/sindconvenioscard.com.br/public/wp-content/themes/enfold/fpdf/fpdf.php:1012 0.5383 52651688 19. PDF->Error() /home/sindconvenioscard.com.br/public/wp-content/themes/enfold/fpdf/fpdf.php:1052