Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ordenTrabajo=$_POST['oT_Escondido'];
- ob_end_clean(); // the buffer and never prints or returns anything.
- ob_start(); // it starts buffering
- class PDF extends FPDF
- {
- // Cabecera de página
- function Header()
- {
- global $ordenTrabajo;
- // Logo
- //$this->Image('../dist/img/logo.jpg',10,8,33);
- // Arial bold 15
- $this->SetFont('Arial','B',15);
- // Movernos a la derecha
- $this->Cell(80);
- // Título
- $this->Cell(120,10,'Control de Empaques IKOR PUNTARENAS SA',0,1,'C');
- $this->SetFont('Arial','B',12);
- // Salto de línea
- $this->Ln(10);
- $this->Cell(40,10,'Orden de Trabajo: ',0,0);
- $this->Cell(40, 10, "GORE-5265", 0, 0);
- $this->Cell(13,10,'OC#: ',0,0);
- $this->Cell(40, 10, "OC-123456789", 0, 0);
- $this->Cell(30,10,'Peso: ',0,0);
- $this->Cell(40, 10, "19,45 KG", 0,0 );
- $this->Cell(50,10,'Cantidad de Cajas: ',0,0);
- $this->Cell(30, 10, "1000", 0, 1);
- $this->Cell(40,10,'Lote: ',0,0);
- $this->Cell(40, 10,$ordenTrabajo, 0, 0); //Empty
- $this->Cell(13,10,'Numero de Parte: ',0,0);
- $this->Cell(40, 10, "PARTE-999999", 0, 0);
- $this->Cell(30,10,'Filtros por caja: ',0,0);
- $this->Cell(40, 10, "11", 0,0 );
- $this->Cell(50,10,'Cantidad de Filtros: ',0,0);
- $this->Cell(30, 10, "9999", 0, 1);
- }
Add Comment
Please, Sign In to add comment