Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. $datos = array ("id_vendedor"=>$_POST["idVendedor"],
  2. "id_cliente"=>$_POST["telefono"],
  3. "codigo"=>$nuevoID,
  4. "nombreCliente"=>$_POST["nombreCliente1"],
  5. "emailCliente"=>$_POST["emailCliente"],
  6. "productos"=>$_POST["listaProductos"],
  7. "impuesto"=>$_POST["nuevoPrecioImpuesto"],
  8. "neto"=>$_POST["nuevoPrecioNeto"],
  9. "total"=>$_POST["totalCotizacion"],
  10. "observaciones" => $_POST["observaciones"]
  11. );
  12.  
  13. require_once ('tcpdf/pdf/tcpdf_include.php');
  14. $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
  15. $pdf->setFontSubsetting(true);
  16. $pdf->SetFont('dejavusans', '', 11, '', true);
  17. $pdf->AddPage();
  18.  
  19. $pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal'));
  20.  
  21. $html = '<div>'.$_POST["nombreCliente1"].'</div>';
  22.  
  23. $pdf->writeHTML($html, false, false, false, false, '');
  24.  
  25. // ---------------------------------------------------------
  26. ob_end_clean();
  27.  
  28. $pdf->Output('pdf.pdf');
  29.  
  30. Fatal error: Class 'TCPDF' not found in /home2/esystemc/public_html/cotizador/controladores/cotizacion.controlador.php on line 67
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement