Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $stylesheet = "
- body { font-family: verdana; font-size: 8px; }
- .borda { border: 1px solid black; }
- .titulo { font-weight: bold; font-size: 10px; }
- .endereco { font-family: arial; font-size: 12px; }
- .caixa { border: 1px solid black; padding: 2px; width: 100px; }
- table.bordasimples { border-collapse: collapse; }
- table.bordasimples tr th { border:1px solid #fff; background-color: #ccc; }
- .cabecalho { font-weight: bold; background-color: #ccc; }
- ";
- $html = '<!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- </head>
- <body>
- <table width="100%">
- <tr>
- <td width="50%" height="1124px" align="center" valign="top">'.$dados.'</td>
- <td align="center" valign="top">'.$dados.'</td>
- </tr>
- </table>
- </body>
- </html>';
- // Criar o PDF
- $mpdf=new mPDF('c','A4','','',5,5,5,5,5,5);
- $mpdf->SetProtection(array('print'));
- $mpdf->SetTitle("Intercell Eletrônicos");
- $mpdf->SetAuthor("ipeagenciadigital.com.br");
- $mpdf->SetDisplayMode('fullpage');
- $mpdf->WriteHTML($stylesheet,1);
- $mpdf->WriteHTML($html,2);
- $mpdf->Output();
- exit;
- exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement