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


PHP MYPDF::SetLineStyle方法代码示例

本文整理汇总了PHP中MYPDF::SetLineStyle方法的典型用法代码示例。如果您正苦于以下问题:PHP MYPDF::SetLineStyle方法的具体用法?PHP MYPDF::SetLineStyle怎么用?PHP MYPDF::SetLineStyle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MYPDF的用法示例。


在下文中一共展示了MYPDF::SetLineStyle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

$pdf->Write(0, 'Catálogo', '', 0, 'L', true, 0, false, false, 0);
$pdf->SetFont('helvetica', '', 8);
//---------------------------------
$tbl = <<<EOD
<table border="1"  cellpadding="0" cellspacing="1" align="center" fontsize="14">
<tr>
<td></td><td><br /><br /><br /><br /></td>
</tr>
<tr>
<th colspan="2"><h1>Estructura Programática</h1></th>
</tr>
</table>
EOD;
$pdf->writeHTML($tbl, true, false, false, false, '');
$pdf->Ln();
$pdf->SetLineStyle(array('width' => 0.0, 'cap' => 'butt', 'join' => 'miter', 'dash' => 4, 'color' => array(255, 0, 0)));
$pdf->SetFillColor(255, 255, 128);
$pdf->SetTextColor(0, 0, 128);
$pdf->Ln();
$tbl = <<<EOD
<table border="1"  cellpadding="1" cellspacing="1" align="center" fontsize="12">
<tr>
<th colspan="1">ID</th>
<th colspan="1">CLAVE</th>
<th colspan="1">DESCRIPCIÓN</th>
<th colspan="1">TIPO</th>
</tr>
</table>
EOD;
$pdf->writeHTML($tbl, true, false, false, false, '');
$pdf->Ln();
开发者ID:jkarlos1402,项目名称:DGIMy,代码行数:31,代码来源:ejem_pdf.php

示例2: array

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

示例3: array

 $style = array('width' => 0.01, 'cap' => 'butt', 'join' => 'round', 'dash' => '0', 'color' => array(100, 100, 100));
 $style1 = array('width' => 0.04, 'cap' => 'butt', 'join' => 'round', 'dash' => '0', 'color' => array(255, 255, 0));
 $style2 = array('width' => 0.02, 'cap' => 'butt', 'join' => 'round', 'dash' => '3', 'color' => array(255, 0, 0));
 $ypos = $imageheight + 1.5;
 $pdf->SetY($ypos);
 $m = 1;
 unset($notes);
 if ($resources[$n]['annotation_count'] != 0) {
     $notes = sql_query("select * from annotate_notes where ref='{$ref}'");
     foreach ($notes as $note) {
         $ratio = $imagewidth / $note['preview_width'];
         $note_y = $note['top_pos'] * $ratio;
         $note_x = $note['left_pos'] * $ratio;
         $note_width = $note['width'] * $ratio;
         $note_height = $note['height'] * $ratio;
         $pdf->SetLineStyle($style1);
         $pdf->Rect(($width - 1) / 2 - ($imagewidth - 1) / 2 + $note_x, $note_y + 1, $note_width, $note_height);
         $pdf->Rect(($width - 1) / 2 - ($imagewidth - 1) / 2 + $note_x, $note_y + 1, 0.1, 0.1, 'DF', $style1, array(255, 255, 0));
         $ypos = $pdf->GetY();
         $pdf->Text(($width - 1) / 2 - ($imagewidth - 1) / 2 + $note_x - 0.01, $note_y + 0.99, $m, false, false, true, 0, 0, 'L');
         //$pdf->SetLineStyle($style2);
         //$pdf->Rect(((($width-1)/2)-($imagewidth-1)/2)+$note_x,$note_y+1,$note_width,$note_height);
         $pdf->SetY($ypos);
         $note_user = get_user($note['user']);
         $pdf->SetLineStyle($style);
         $noteparts = explode(":", $note['note'], 2);
         $pdf->MultiRow($m, trim($noteparts[1]) . " - " . $note_user['fullname']);
         $ypos = $ypos + 0.5;
         $m++;
     }
 }
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:31,代码来源:general.php


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