当前位置: 首页>>代码示例>>PHP>>正文


PHP MYPDF::RoundedRect方法代码示例

本文整理汇总了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&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>
开发者ID:Vrian7ipx,项目名称:repocas,代码行数:31,代码来源:ver2.blade.php

示例2: array

		<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 = "";
开发者ID:Vrian7ipx,项目名称:firstmed,代码行数:31,代码来源:verGolden.blade.php

示例3: array

$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% ">
开发者ID:Vrian7ipx,项目名称:cascadadev,代码行数:31,代码来源:factura.php

示例4: array

$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% ">
开发者ID:Vrian7ipx,项目名称:cascadadev,代码行数:31,代码来源:invoice.blade.php

示例5: array

$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>';
开发者ID:Vrian7ipx,项目名称:repocas,代码行数:31,代码来源:factura2.blade.php


注:本文中的MYPDF::RoundedRect方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。