Guest User

Untitled

a guest
Apr 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <?php
  2. require('../fpdf/fpdf.php');
  3. class Ticket extends FPDF{
  4. private $conexion;
  5. public function __construct(){
  6. require_once('../model/conexion.php');
  7. parent::__construct();
  8. $this->conexion = new conexion();
  9. $this->conexion->conectar();
  10. }
  11. }
  12.  
  13. $pdf = new FPDF('P','mm',array(114,76));
  14. $pdf->AddPage();
  15. $pdf->SetFont('Arial','',10);
  16. $pdf->Cell(0,0,'StoreLTE');
  17. $pdf->Ln(2);
  18. $pdf->Output('test.pdf', 'i');
  19. ?>
  20.  
  21. $pdf->Cell(0,0,'StoreLTE',0,1,'C');
Add Comment
Please, Sign In to add comment