Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('fpdf/WriteHTML.php');
- $pdf = new PDF_HTML();
- $pdf->AliasNbPages();
- $pdf->SetAutoPageBreak(true, 15);
- $pdf->AddPage();
- $pdf->SetFont('Arial', '', 10);
- $pdf->Cell(18, 10, '', 0);
- $pdf->Cell(150, 10, '', 0);
- $pdf->SetFont('Arial', '', 9);
- $pdf->Ln(5);
- $pdf->SetFont('Arial', 'B', 12);
- $pdf->Cell(10, 8, 'dato', 50);
- $pdf->Ln(10);
- $pdf->SetFont('Arial', '', 11);
- $pdf->Cell(25, 8, "NIT", 0);
- $pdf->Ln(5);
- $pdf->Cell(25, 8, "Clle 93 No. 11-26 Bogota D.C.", 0);
- $pdf->Ln(23);
- $pdf->Cell(80, 8, '', 0);
- $pdf->SetFont('Arial', 'B', 14);
- $pdf->Cell(25, 8, 'CERTIFICA:', 0);
- $pdf->Ln(8);
- $pdf->SetFont('Arial', '', 12);
- $pdf->Cell(25, 8, utf8_decode('Que durante el año gravable 2018, se le practicó Retención en la Fuente a:'), 0);
- $pdf->Ln(8);
- $htmlTable ='<html >
- <head>
- </head>
- <body>
- <table>
- <tr>
- <th>titulo</th>
- <th>titulo</th>
- <th>titulo</th>
- </tr>
- <tr>
- <td>contenido</td>
- <td>contenido</td>
- <td>contenido</td>
- </tr>
- <tr>
- <td>contenido</td>
- <td>contenido</td>
- <td>contenido</td>
- </tr>
- <tr>
- <td>contenido</td>
- <td>contenido</td>
- <td>contenido</td>
- </tr>
- </table>
- </body>
- </html>';
- $pdf->WriteHTML($htmlTable);
- $pdf->Output('Factura.pdf','D');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement