本文整理汇总了PHP中MYPDF::RoundedRect方法的典型用法代码示例。如果您正苦于以下问题:PHP MYPDF::RoundedRect方法的具体用法?PHP MYPDF::RoundedRect怎么用?PHP MYPDF::RoundedRect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MYPDF
的用法示例。
在下文中一共展示了MYPDF::RoundedRect方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
</tr>
<tr>
<td style="font-size:8px">AUTORIZACIÓN Nº</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: array
<td style="font-size:8px">FACTURA Nº</td>
<td align="left" style="font-size:10px">: ' . $nfac . '</td>
</tr>
<tr>
<td style="font-size:8px">AUTORIZACIÓN Nº</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: array
$nit = 7024739019;
$nfac = 01;
$nauto = 1234567890123;
// add a page
$pdf->AddPage();
//cuadro roy
$html = '
<p>
NIT : ' . $nit . ' <br>
Nº FACTURA : ' . $nfac . ' <br>
Nº AUTORIZACION : ' . $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: array
$nauto = 1234567890123;
$sfc = 01;
// add a page
$pdf->AddPage();
//cuadro roy
$html = '
<p style="line-height: 175% ">
NIT : ' . $nit . ' <br>
AUTORIZACIÓN Nº : ' . $nfac . ' <br>
FACTURA Nº : ' . $nauto . ' <br>
SFC : ' . $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% ">
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: array
$sfc = $invoice->sfc;
// add a page
$pdf->AddPage();
//contenido del recuadro
$html = '<p style="line-height: 175%">
NIT : ' . $nit . ' <br>
AUTORIZACIÓN Nº : ' . $nauto . ' <br>
FACTURA Nº : ' . $nfac . ' <br>
SFC : ' . $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>';