本文整理汇总了PHP中MYPDF::Image方法的典型用法代码示例。如果您正苦于以下问题:PHP MYPDF::Image方法的具体用法?PHP MYPDF::Image怎么用?PHP MYPDF::Image使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MYPDF
的用法示例。
在下文中一共展示了MYPDF::Image方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<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>
</tr>
</table>';
示例2: Point
$datasetBonus->addPoint(new Point("2,7", $summary["27"]["countBonus"]));
$datasetBonus->addPoint(new Point("3,0", $summary["30"]["countBonus"]));
$datasetBonus->addPoint(new Point("3,3", $summary["33"]["countBonus"]));
$datasetBonus->addPoint(new Point("3,7", $summary["37"]["countBonus"]));
$datasetBonus->addPoint(new Point("4,0", $summary["40"]["countBonus"]));
$datasetBonus->addPoint(new Point("5,0", $summary["50"]["countBonus"]));
$datasetBonus->addPoint(new Point("NT", $summary["NT"]["countBonus"]));
$datasetBonus->addPoint(new Point("BV", $summary["BV"]["countBonus"]));
$datasetBonus->addPoint(new Point("SICK", $summary["SICK"]["countBonus"]));
$dataSet = new XYSeriesDataSet();
$dataSet->addSerie(gettext("with bonus"), $datasetBonus);
$dataSet->addSerie(gettext("without bonus"), $datasetNoBonus);
$chart->setDataSet($dataSet);
$chart->setTitle("");
$chart->render(EXAM_ORGANIZATION_TEMP_DIR . $key . "notenspiegel.png");
$pdf->Image(EXAM_ORGANIZATION_TEMP_DIR . $key . 'notenspiegel.png', 47, 145, 180, 90, '', '', '', false, 300);
// ---------------------------------------------------------
$passed = count($participants) - $notPassed - $summary["NT"]["countBonus"] - $summary["BV"]["countBonus"] - $summary["SICK"]["countBonus"];
$passedPercent = number_format($passed / count($participants) * 100, 2);
$notPassedPercent = number_format($notPassed / count($participants) * 100, 2);
$NTpercent = number_format($summary["NT"]["countBonus"] / count($participants) * 100, 2);
$BVpercent = number_format($summary["BV"]["countBonus"] / count($participants) * 100, 2);
$SICKpercent = number_format($summary["SICK"]["countBonus"] / count($participants) * 100, 2);
$tbl = "<table border=\"1\" cellpadding=\"1\" cellspacing=\"0\">";
$tbl .= "<thead>";
$tbl .= "<tr bgcolor=\"#FFFFFF\" color=\"#000000\">";
$tbl .= "<td width=\"75\" align=\"center\"></td>";
$tbl .= "<td width=\"50\" align=\"center\"><b>" . gettext("number") . "</b></td>";
$tbl .= "<td width=\"50\" align=\"center\"><b>" . gettext("in %") . "</b></td>";
$tbl .= "</tr>";
$tbl .= "</thead>";
示例3: actionCreateAccount
public function actionCreateAccount()
{
$params = self::accountCond();
$select1 = "OrderSN as No,CreateTime,Payment,BuyerID,RealPrice as Price,BuyerName";
$select2 = "ReturnNO as No,CreateTime,PayMethod as Payment,ServiceID as BuyerID,Price";
if ($params['type'] == 1) {
$seaCon1 = "select {$select1} from pap_order t where t.Status=9";
$seaCon1 .= " and SellerID = {$params['OrganID']} and IsDelete = 0";
$seaCon1 .= " and t.CreateTime>={$params['starttime']} and t.CreateTime<{$params['endtime']}";
$seaCon1 .= " order by CreateTime DESC";
$data1 = Yii::app()->papdb->createCommand($seaCon1)->queryAll();
$count1 = Yii::app()->papdb->createCommand(str_replace($select1, 'sum(RealPrice)', $seaCon1))->queryScalar();
} else {
if ($params['type'] == 2) {
$seaCon2 = "select {$select2} from pap_return_order t where t.Status in(4,14)";
$seaCon2 .= " and DealerID = {$params['OrganID']}";
$seaCon2 .= " and t.CreateTime>={$params['starttime']} and t.CreateTime<{$params['endtime']}";
$seaCon2 .= " order by CreateTime DESC";
$data2 = Yii::app()->papdb->createCommand($seaCon2)->queryAll();
$count2 = Yii::app()->papdb->createCommand(str_replace($select2, 'sum(Price)', $seaCon2))->queryScalar();
} else {
$seaCon1 = "select {$select1} from pap_order t where t.Status=9";
$seaCon1 .= " and SellerID = {$params['OrganID']} and IsDelete = 0";
$seaCon1 .= " and t.CreateTime>={$params['starttime']} and t.CreateTime<{$params['endtime']}";
$seaCon1 .= " order by CreateTime DESC";
$data1 = Yii::app()->papdb->createCommand($seaCon1)->queryAll();
$count1 = Yii::app()->papdb->createCommand(str_replace($select1, 'sum(RealPrice)', $seaCon1))->queryScalar();
$seaCon2 = "select {$select2} from pap_return_order t where t.Status in(4,14)";
$seaCon2 .= " and DealerID = {$params['OrganID']}";
$seaCon2 .= " and t.CreateTime>={$params['starttime']} and t.CreateTime<{$params['endtime']}";
$seaCon2 .= " order by CreateTime DESC";
$data2 = Yii::app()->papdb->createCommand($seaCon2)->queryAll();
$count2 = Yii::app()->papdb->createCommand(str_replace($select2, 'sum(Price)', $seaCon2))->queryScalar();
}
}
$count1 = $count1 ? $count1 : 0;
$count2 = $count2 ? $count2 : 0;
$gain = $count1 - $count2;
$day = date('t', $params['starttime']);
$organ = Organ::model()->findByPk($params['OrganID'], array('select' => 'OrganName'))->attributes;
$html = '<div style="height:24px; line-height:24px; background-color:#1f76c8">
<div style="margin:0 auto; text-align:center">
<span style="font-family:微软雅黑; font-size:24px; color:#fff; word-spacing:8px; letter-spacing: 1.5px;">' . $params['uyear'] . '年' . $params['umonth'] . '月对账单</span>
</div>
</div>
<div style="font-size:16px; color:#343434; line-height:16px">
<p style="margin:0px; ">亲爱的' . $organ['OrganName'] . ',您好!</p>
<p style="margin:0px; ">感谢您使用由你配平台,以下是您' . $params['umonth'] . '月的平台交易明细:</p>
</div>
<div style="height:20px; line-height:18px; border-bottom:2px solid #c9c7c7; border-top:2px solid #c9c7c7; background-color:#f2f2f2; padding:0 30px">
<div style="font-size:16px; font-weight:bold; color:#565656; line-height:18px;float:left">
本月净收益: <span style="color:#1f76c8">' . $gain . '</span> 元
</div>
<div style="font-size:16px; line-height:18px;float:right">
<p style="margin:0px; line-height:15px">
本月总收入: <span style="color:#1f76c8;font-size:14px">' . $count1 . '</span>元
本月总支出: <span style="color:#1f76c8;font-size:14px">' . $count2 . '</span>元</p>
<p style="margin:0px; line-height:15px">
账单周期:' . $params['uyear'] . '年' . $params['umonth'] . '月01日—' . $params['uyear'] . '年' . $params['umonth'] . '月' . $day . '日
</p>
</div>
</div>';
Yii::import('application.extensions.tcpdf.*');
// create new PDF document
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// 设置文档信息
$pdf->SetCreator('--');
$pdf->SetAuthor('北京嘉配科技有限公司');
$pdf->SetTitle('由你配 - 对账单');
$pdf->SetSubject('TCPDF Tutorial');
$pdf->SetKeywords('TCPDF, PDF, PHP');
// 设置页眉和页脚信恿
$pdf->SetHeaderData('', 30, '', '', array(0, 64, 255), array(0, 64, 128));
$pdf->setFooterData(array(0, 64, 0), array(0, 64, 128));
// 设置页眉和页脚字使
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// 设置默认等宽字体
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
// 设置间距
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// 设置分页
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// 设置字体
$pdf->SetFont('stsongstdlight', '', 14, true);
// 添加页面
$pdf->AddPage();
// Image example with resizing
$pdf->Image(F::themeUrl() . '/images/jpd/logo_account.jpg', 20, 28, 30, 18, 'JPG', '', '', true, 150, '', false, false, 0, false, false, false);
// 设置字体阴影
//$pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal'));
// 输出HTML内容
$pdf->writeHTML($html, true, false, true, false, '');
if (!empty($data1)) {
$html = '<p style="color:#1f76c8">订单明细:</p>';
//.........这里部分代码省略.........
示例4: array
<td style="font-size:8px">FACTURA Nº</td>
<td align="left" style="font-size:10px">: ' . $nfac . '</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, '14', '10', 50, 20, '', '', '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="rigth" width="' . $anchoDivFac . '"><font color="#333333">' . $factura . '</font></td>
</tr>
</table>';
示例5: BarPlot
$graph->xaxis->SetLabelAngle(50);
$graph->yaxis->HideLine(false);
$graph->yaxis->HideTicks(false, false);
// Create the bar plots
$b1plot = new BarPlot($data1y);
// ...and add it to the graph
$graph->Add($b1plot);
$graph->title->Set("Pareto difetti");
$graph->title->Align("center");
$contentType = 'image/png';
$gdImgHandler = $graph->Stroke(_IMG_HANDLER);
// @see http://stackoverflow.com/a/9084110/126431
ob_start();
// start buffering
$graph->img->Stream();
// print data to buffer
$graphData = ob_get_contents();
// retrieve buffer contents
ob_end_clean();
// stop buffer
// outputting this in a HTML tag would work like this:
// $graphBase64 = "data:$contentType;base64," . base64_encode($graphData);
// echo sprintf('<img src="%s" alt="Graph">', $graphBase64);
$pdf->Image('@' . $graphData);
// ---------------------------------------------------------
// Close and output PDF document
// This method has several options, check the source code documentation for more information.
$pdf->Output('report.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
示例6:
// Print address
$pdf->SetFont('helvetica', '', 10);
foreach ($REC_ADRESS as $line) {
$pdf->Cell(0, 0, $line, 0, 1);
}
$pdf->SetFont('helvetica', '', 8);
$pdf->ln();
$pdf->Cell(0, 0, $SPECIAL_NOTE, 0, 1);
$pdf->ln();
$pdf->SetY(90);
$pdf->SetFont('helvetica', 'B', 14);
$pdf->Cell(0, 0, "Invoice", 0, 1);
// ---------------------------------------------------------
$pdf->SetY(100);
$pdf->SetFont('helvetica', '', 12);
$pdf->Image($HEADER_IMG, $pdf->GetX(), $pdf->GetY(), $W, '', 'png', '', 'T', true, 300, '', false, false, 0, true, false, false);
$w2 = 20;
$pdf->SetY(140);
foreach ($INVOICE_ITMS as $i) {
$item = $i[0];
$curr = $i[1];
$amnt = $i[2];
$pdf->Cell($W - 2 * $w2, 0, $item, "B", 0);
$pdf->Cell($w2, 0, $curr, "B", 0, "R");
$pdf->Cell($w2, 0, $amnt, "B", 1, "R");
}
$pdf->SetFont('helvetica', '', 2);
$pdf->Cell($W, 1, "", "B", 1);
$pdf->SetFont('helvetica', 'B', 12);
$pdf->Cell($W - 2 * $w2, 10, "TOTAL", "B", 0);
$pdf->Cell($w2, 10, $TOTAL_AMNT[0], "B", 0, "R");
示例7:
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// set font
$pdf->SetFont('helvetica', '', 6.5);
$pdf->Addpage();
$pdf->writeHTML($contenido, true, false, false, false, '');
if ($marcaAgua === '1') {
// get the current page break margin
$bMargin = $pdf->getBreakMargin();
// get current auto-page-break mode
$auto_page_break = $pdf->getAutoPageBreak();
// disable auto-page-break
$pdf->SetAutoPageBreak(false, 0);
// set bacground image
$img_file = K_PATH_IMAGES . 'marcaAgua.jpg';
$pdf->SetAlpha(0.1);
$pdf->Image($img_file, 0, 0, 280, 200, '', '', '', false, 300, 'C', false, false, 0);
$pdf->SetAlpha(1);
// restore auto-page-break status
$pdf->SetAutoPageBreak($auto_page_break, $bMargin);
// set the starting point for the page content
$pdf->setPageMark();
} else {
$pdf->write1DBarcode($CveAps, 'C128', 235, 33, 43, 13, 0.4, $style, 'N');
}
if (count($comprobantes) > 0) {
$tablaComprobantes = "";
for ($i = 0; $i < count($comprobantes[0]['folio']); $i++) {
$tablaComprobantes .= "<tr class='mainContent'><td style='text-align:left;' class='mainContent'>" . $comprobantes[0]['folio'][$i] . "</td>" . "<td >" . $comprobantes[0]['tipoDocumento'][$i] . "</td>" . "<td >" . $comprobantes[0]['importe'][$i] . "</td>" . "<td >" . $comprobantes[0]['partida'][$i] . "</td>" . "</tr>";
}
$contenido2 = <<<EOD
<style>
示例8:
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set some language-dependent strings (optional)
if (@file_exists('/includes/tcpdf/examples/lang/spa.php')) {
require_once '/includes/tcpdf/examples/lang/spa.php';
$pdf->setLanguageArray($l);
}
$pdf->SetFont('helvetica', 'B', 11);
$nit = $invoice->account_nit;
$nfac = $invoice->invoice_number;
$nauto = $invoice->number_autho;
$sfc = $invoice->sfc;
// add a page
$pdf->AddPage('P', 'LETTER');
$logoEmpresa = base64_decode($invoice->logo);
$pdf->Image('@' . $logoEmpresa, '14', '10', 50, 20, '', '', 'T', false, 300, '', false, false, 0, false, false, false);
///title
$titleFactura = '<table>
<tr>
<td align="rigth"><font color="#333333">NOTA DE ENTREGA</font></td>
</tr>
</table>';
$pdf->SetFont('helvetica', 'B', 27);
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '10', $titleFactura, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'left', $autopadding = true);
$pdf->SetFont('helvetica', 'B', 11);
//nombre de la empresa
$business = $invoice->account_name;
$unipersonal = $invoice->account_uniper;
$pdf->SetFont('helvetica', 'B', 12, false);
$NombreEmpresa = '
<p style="line-height: 150%">
示例9: stripslashes
$pdf->SetFont($fontLan,'',10);
//Pagina della descrizione
*
*/
$pdf->AddPage();
$pdf->setPrintHeader(true);
$pdf->SetFont($fontLan, 'B', 14);
$pdf->SetY(5);
$pdf->SetX(33);
$pdf->Cell(145, 0, $titolo, 0, 2, 'C');
$pdf->SetY(10);
if ($prezzo > 0) {
$pdf->WriteHTML('<div align="center">€ ' . number_format($im['prezzo'], 0, ',', '.') . '</div>', false);
}
if ($im['foto_g_immobile'] != '') {
$pdf->Image(IMAGESPATH . 'medie/' . $im['foto_g_immobile'], 13, 15, 0, 80, '', '', 'C');
} else {
$pdf->Image(IMAGESPATH . 'medie/imagenotavailable_big.gif', 5, 17);
}
$pdf->SetY(100);
$pdf->SetX(10);
$pdf->SetFont($fontLan, '', 12);
$pdf->WriteHTML('<table align="center" width="520"><tr><td align="left">' . stripslashes($im['descrizione_' . $lan]) . '</td></tr></table>', false);
if ($im['residence'] == 1) {
$appartamenti = mysql_query("select * from immobili i, tipi t where i.id_tipi=t.id_tipi and id_residence=" . $im['id_immobili'] . ' order by ordine');
if (mysql_num_rows($appartamenti) > 0) {
$testoHtml = '<ul>';
while ($app = mysql_fetch_array($appartamenti)) {
$testoHtml .= '<h4>' . stripslashes($app['nome_tipo_' . $lan]) . ' ' . stripslashes($app['nome_immobile_' . $lan]) . ' (' . $app['n_vani'] . ' ' . POSTI_LETTO . ')</h4>';
$testoHtml .= strip_tags(stripslashes($app['descrizione_' . $lan]));
}
示例10: array
</tr>
<tr nobr="true">
<td colspan="3"><p></p><p></p><p></p><p></p>NOMBRE Y FIRMA</td>
</tr>
</table>
EOD;
$pdf->writeHTML($tbl, true, false, false, false, '');
ob_end_clean();
$style = array('position' => '', 'align' => 'C', 'stretch' => true, 'fitwidth' => true, 'cellfitalign' => '', 'border' => false, 'hpadding' => 'auto', 'vpadding' => 'auto', 'fgcolor' => array(0, 0, 0), 'bgcolor' => false, 'text' => true, 'font' => 'freesans', 'fontsize' => 8, 'stretchtext' => 4);
if ($marcaAgua === '1') {
// get the current page break margin
$bMargin = $pdf->getBreakMargin();
// get current auto-page-break mode
$auto_page_break = $pdf->getAutoPageBreak();
// disable auto-page-break
$pdf->SetAutoPageBreak(false, 0);
// set bacground image
$img_file = K_PATH_IMAGES . 'marcaAgua.jpg';
$pdf->SetAlpha(0.1);
$pdf->Image($img_file, 0, 0, 130, 300, '', '', '', false, 300, 'C', false, false, 0);
// $pdf->Image($img_file, 0, 0, 0, 0, '', '', '', false, 300, '', false, false, 0);
$pdf->SetAlpha(1);
// restore auto-page-break status
$pdf->SetAutoPageBreak($auto_page_break, $bMargin);
// set the starting point for the page content
$pdf->setPageMark();
} else {
$pdf->write1DBarcode($idSol, 'C128', 150, 40, 70, 18, 0.4, $style, 'N');
}
//Close and output PDF document
$pdf->Output('SolicitudNo' . $idSol . '.pdf', 'I');
示例11: eval
$value = str_replace("'", "\\'", $result[$n]['field' . $config_sheetlist_fields[$ff]]);
$plugin = "../../plugins/value_filter_" . $csf[$ff]['name'] . ".php";
if ($csf[$ff]['value_filter'] != "") {
eval($csf[$ff]['value_filter']);
} else {
if (file_exists($plugin)) {
include $plugin;
}
}
$value = TidyList($value);
$pdf->Text($pdf->GetX() + $imagesize + 0.1, $pdf->GetY() + 0.2 * ($ff + 2), $value);
$pdf->SetXY($currentx, $currenty);
}
}
}
$pdf->Image($imgpath, $pdf->GetX(), $pdf->GetY() + 0.025, $imagesize, 0, $preview_extension, $baseurl . '/?r=' . $ref);
if ($sheetstyle == "thumbnails") {
$pdf->SetXY($topx, $topy);
$pdf->Cell($cellsize[0], $bottomy - $topy + $imagesize + 0.2, '', 0, 0);
} else {
$pdf->Cell($cellsize[0], $cellsize[1], '', 0, 0);
}
} else {
if ($sheetstyle == "thumbnails") {
$topy = $pdf->GetY();
$topx = $pdf->GetX();
if ($config_sheetthumb_include_ref) {
$pdf->Cell($imagesize, ($refnumberfontsize + $leading) / 72, $ref, 0, 2, 'L', 0, '', 1);
}
for ($ff = 0; $ff < count($config_sheetthumb_fields); $ff++) {
$value = "";
示例12: while
$pdf->Row_SinLine(array("Subdependencia:", "-"), "");
$pdf->x2 = 205;
$pdf->y2 = $pdf->GetY();
//dibujar rectangulo, ancho y alto, diferencia entre x e y actual con x e y iniciales
$pdf->Rect($pdf->x1, $pdf->y1, $pdf->x2 - $pdf->x1, $pdf->y2 - $pdf->y1);
$pdf->Ln(3);
//parte datos evaluacion actual
$pdf->SetFont("Arial", "B", 10);
$pdf->Cell(0, 5, "RESULTADOS", 0, 1, "C");
$pdf->x1 = 7;
$pdf->y1 = $pdf->GetY();
//escribir la imagen en una carpeta
$imagen = file_get_contents("http://localhost:8080/ceccc/app/perfil_evaluado_imagen.php?q=" . base64_encode($varImg));
if ($imagen != "0") {
file_put_contents("tmp_foto/" . $row_srcEvaluado["CURP"] . "-" . $row_srcEvaluado["NumeroEvaluacion"] . ".jpg", $imagen);
$pdf->Image("tmp_foto/" . $row_srcEvaluado["CURP"] . "-" . $row_srcEvaluado["NumeroEvaluacion"] . ".jpg", 165, $pdf->y1 + 5, 30);
} else {
$pdf->Image("img/50x50.jpg", 165, $pdf->y1 + 5, 30);
}
$pdf->SetFont("Arial", "", 8);
$pdf->SetWidths(array(60, 60, 90));
$vigenciaEvaluacion = $row_srcEvaluado["descVigencia"];
do {
$pdf->Row_SinLine(array("RESULTADO " . utf8_decode($row_srcEvalExamenes["TipoExamen"]) . ":", $row_srcEvalExamenes["ResultadoExamen"], ""), "");
} while ($row_srcEvalExamenes = sqlsrv_fetch_array($srcEvalExamenes));
$pdf->Ln(3);
$pdf->SetFont("Arial", "B", 10);
$pdf->SetWidths(array(50, 150));
$pdf->Row_SinLine(array("RESULTADO INTEGRAL", $row_srcEvaluado["cResultadoint"]), "");
$pdf->Ln(3);
$pdf->Row_SinLine(array("Fecha Resultado Integral", $row_srcEvaluado["fResultadoint"]), "");
示例13: 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>
</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, '15', '6', 64, 22, '', '', '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 = "";
}
$titleFactura = '<table>
示例14: Footer
public function Footer()
{
$this->SetY(-15);
$this->SetFont('helvetica', 'I', 8);
$this->Cell(0, 10, 'Page ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
}
}
$pdf = new MYPDF('L', 'mm', 'A4', true, 'UTF-8', false);
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(30, 70, 20);
$pdf->setPrintHeader(false);
$pdf->SetAutoPageBreak(TRUE, 15);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->AddPage();
$image_file = K_PATH_IMAGES . 'luxindo.jpg';
$pdf->Image($image_file, 5, 0, 40, '', 'JPG', '', 'M', false, 300, '', false, false, 0, false, false, false);
$pdf->SetFont('helvetica', 'B', 17);
$pdf->setXY(45, 18, true);
$pdf->Cell(0, 13, 'PT. Luxindo Raya', 0, 2, 'L', 0, '', '', 'D', 'B');
$pdf->SetFont('helvetica', 'B', 10);
$pdf->setXY(45, 18, true);
$pdf->Cell(0, 0, 'LAPORAN PENJUALAN', 0, 2, 'L', 0, '', '');
$pdf->SetFont('helvetica', '', 9);
$pdf->Cell(0, 0, 'Cabang ' . $dataCabang['kode'] . ' - ' . $dataCabang['nama_cabang'], 0, 1, 'L', 0, '');
$pdf->Line(14, 30, 280, 30);
$pdf->SetFont('helvetica', '', 7);
$pdf->setXY(15, 40);
$pdf->Cell(0, 0, 'Periode ' . $begin . ' - ' . $end, 0, 2, 'L', 0, '', '');
$pdf->SetFont('helvetica', 'B', 7);
$pdf->setXY(15, 45);
$pdf->MultiCell(10, 7, "No", 'TB', 'C', false, 0, '', '', false, 0, false, false, 7, 'M');
示例15: array
$whratio = $imagesize[0] / $imagesize[1];
$hwratio = $imagesize[1] / $imagesize[0];
if ($whratio < 1) {
$imageheight = $height - 4;
// vertical images can take up half the page
$whratio = $imagesize[0] / $imagesize[1];
$imagewidth = $imageheight * $whratio;
}
if ($whratio >= 1 || $imagewidth > $width + 1) {
$imagewidth = $width - 1;
// horizontal images are scaled to width - 1 in
$hwratio = $imagesize[1] / $imagesize[0];
$imageheight = $imagewidth * $hwratio;
}
$pdf->Text(0.5, 0.5, i18n_get_translated($resourcedata['field' . $view_title_field]) . ' ' . $date);
$pdf->Image($imgpath, ($width - 1) / 2 - ($imagewidth - 1) / 2, 1, $imagewidth, $imageheight, "jpg", $baseurl . '/?r=' . $ref);
// set color for background
$pdf->SetFillColor(255, 255, 200);
$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;