示例#1
0
	</tr>
	<tr>
		<td style="font-size:8px">AUTORIZACI&Oacute;N N&ordm;</td>
		<td align="left" style="font-size:10px">: ' . $nauto . '</td>
	</tr>
	<tr><td></td></tr>
	<tr>
		<td align = "center" colspan="2">' . $sfc . '</td>
	</tr>
	</table>
';
//imprime el contenido de la variable html
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '140', $y = '17', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true);
//dibuja un rectangulo
$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
$pdf->RoundedRect(138, 15, 61, 18, 2, '1111', null);
$imgdata = base64_decode($invoice->logo);
$pdf->Image('@' . $imgdata, '19', '10', 80, 24, '', '', 'T', false, 300, '', false, false, 0, false, false, false);
///title
$anchoDivFac = 480;
if ($invoice->type_third == 0) {
    $factura = "FACTURA";
    $tercero = "";
} else {
    $factura = "FACTURA POR TERCEROS";
    $tercero = $matriz->name;
    $anchoDivFac = 520;
}
$titleFactura = '<table>
<tr>
<td align="center" width="' . $anchoDivFac . '"><font color="#000">' . $factura . '</font></td>
示例#2
0
		<td style="font-size:8px">FACTURA N&ordm;</td>
		<td align="left" style="font-size:10px">: ' . $nfac . '</td>
	</tr>
	<tr>
		<td style="font-size:8px">AUTORIZACI&Oacute;N N&ordm;</td>
		<td align="left" style="font-size:10px">: ' . $nauto . '</td>
	</tr>
	<tr><td></td></tr>

	</table>
';
//imprime el contenido de la variable html
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '137', $y = '13', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true);
//dibuja un rectangulo
$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
$pdf->RoundedRect(135, 11, 64, 18, 2, '1111', null);
$imgdata = base64_decode($invoice->logo);
$pdf->Image('@' . $imgdata, '19', '6', 80, 24, '', '', 'T', false, 300, '', false, false, 0, false, false, false);
///title
$anchoDivFac = 480;
if ($invoice->type_third == 0) {
    $factura = "FACTURA";
    $tercero = "";
} else {
    $factura = "FACTURA POR TERCEROS";
    $tercero = $matriz->name;
    $anchoDivFac = 520;
}
if ($invoice->anulado == 1) {
    $factura = "FACTURA ANULADA";
    $tercero = "";
示例#3
0
$nit = 7024739019;
$nfac = 01;
$nauto = 1234567890123;
// add a page
$pdf->AddPage();
//cuadro roy
$html = '
<p>
NIT &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ' . $nit . ' <br>
Nº FACTURA &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	: ' . $nfac . ' <br>
Nº AUTORIZACION &nbsp;: ' . $nauto . '  <br>
</p>					';
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '133', $y = '8', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true);
// Rounded rectangle
$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
$pdf->RoundedRect(130, 5, 75, 22, 2, '1111', null);
///title roy
$pdf->SetFont('times', 'B', 18);
$html2 = '<h1>FACTURA</h1>';
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '75', $y = '18', $html2, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true);
//nombre de la empresa roy
$pdf->SetFont('times', 'B', 12);
$datos = '
<p style="line-height: 150% ">
Roy Corp
</p>';
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '10', $y = '35', $datos, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true);
//original scf-1 roy
$pdf->SetFont('times', 'B', 12);
$datos2 = '
<p style="line-height: 150% ">
示例#4
0
$nauto = 1234567890123;
$sfc = 01;
// add a page
$pdf->AddPage();
//cuadro roy
$html = '
<p style="line-height: 175% ">
NIT &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ' . $nit . ' <br>
AUTORIZACIÓN Nº  &nbsp;: ' . $nfac . '  <br>
FACTURA Nº &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	: ' . $nauto . ' <br>
SFC &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ' . $sfc . ' <br>
</p>					';
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '130', $y = '5', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true);
// Rounded rectangle
$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
$pdf->RoundedRect(126, 5, 75, 28, 2, '1111', null);
///title roy
$pdf->SetFont('times', 'B', 18);
$html2 = '<h1>FACTURA</h1>';
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '145', $y = '50', $html2, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true);
//nombre de la empresa roy
$pdf->SetFont('times', 'B', 12, false);
$datos = '
<p style="line-height: 150% ">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LA CASCADA S.A.
</p>';
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '35', $datos, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true);
//original scf-1 roy
$pdf->SetFont('times', 'B', 12);
$datos2 = '
<p style="line-height: 150% ">
示例#5
0
$sfc = $invoice->sfc;
// add a page
$pdf->AddPage();
//contenido del recuadro
$html = '<p style="line-height: 175%">
        NIT &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ' . $nit . ' <br>
        AUTORIZACI&Oacute;N N&ordm;  &nbsp;: ' . $nauto . '  <br>
        FACTURA N&ordm; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ' . $nfac . ' <br>
        SFC &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: ' . $sfc . ' <br>
    </p>';
//$html = $nauto;
//imprime el contenido de la variable html
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '125', $y = '5', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true);
//dibuja un rectangulo
$pdf->SetLineStyle(array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
$pdf->RoundedRect(126, 5, 75, 28, 2, '1111', null);
$imgdata = base64_decode($invoice->logo);
$pdf->Image('@' . $imgdata, '14', '18', 30, 30, '', '', 'T', false, 300, '', false, false, 0, false, false, false);
///title
if ($invoice->type_third == 0) {
    $factura = "FACTURA";
    $tercero = "";
} else {
    $factura = "FACTURA POR TERCEROS";
    $tercero = $invoice->branch;
}
$titleFactura = '<table>
<tr>
<td align="center"><font color="#333333">' . $factura . '</font></td>
</tr>
</table>';