At the moment of executing a PDF report from tcpdf
it does not present the lines of the table even though they are the same as the objects in which part I must change in order to be presented with the edges of the table.
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('JOSE LOOR');
$pdf->SetTitle('RECIBO DE ENTREGA');
$pdf->SetSubject('PEDIDO');
$pdf->SetKeywords('SACI');
$pdf->SetPrintHeader(false);
$pdf->SetPrintFooter(false);
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
// set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
require_once(dirname(__FILE__) . '/lang/eng.php');
$pdf->setLanguageArray($l);
}
$pdf->SetFont('helvetica', '', 9, '', true);
$pdf->AddPage('P', 'A4');
$pdf->Image('img/logo.png', 15, 10, 180, 35, 'JPG', 'http://www.tcpdf.org', '', true, 150, '', false, false, 1, false, false, false);
$pdf->Ln();
$html = "<table border='1' align='center' style='text-align:center;' bordercolor='blue' cellspacing='0'>
<tr>
<td width='150' >
</td>
<td>
EUFRATESINVEST SA
</td>
<td>
<b>RUC:</b>
</td>
<td>
0992346531001
</td>
</tr>
<tr>
<td>
<b>DIRECCION:</b>
</td>
<td>
KM 1 1/2 VIA LAS MERCEDES
</td>
<td>
<b>FACTURA</b>
</td>
<td>
No. 003002000004754
</td>
</tr>
<tr>
<td>
<b>OBLIGADO A LLEVAR CONTABILIDAD</b>
</td>
<td>
SI
</td>
<td>
</td>
<td>
0992346531001
</td>
</tr>
<tr>
<td>
<b>NOMBRES Y APELLIDOS</b>
</td>
<td>
LUIS QUIMBULCO
</td>
<td>
<b>IDENTIFICACION</b>
</td>
<td>
0992346531001
</td>
</tr>
<tr>
<td>
<b>FECHA DE EMISION:</b>
</td>
<td>
12/12/2015
</td>
<td>
</b>GUIA DE REMISION:</b>
</td>
<td>
0992346531001
</td>
</tr>
</table>";
$header = array('CODIGO', 'DETALLE','CANTIDAD','PRECIO','TOTAL');
$html=utf8_encode($html);
$pdf->writeHTML($html, true, false, true, true, '');
$pdf->Output('example_001.pdf', 'I');