本文整理汇总了PHP中PDF::WriteHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::WriteHTML方法的具体用法?PHP PDF::WriteHTML怎么用?PHP PDF::WriteHTML使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDF
的用法示例。
在下文中一共展示了PDF::WriteHTML方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
function run()
{
// change some win codes, and xhtml into html
$str = array('<br />' => '<br>', '<hr />' => '<hr>', '[r]' => '<red>', '[/r]' => '</red>', '[l]' => '<blue>', '[/l]' => '</blue>', '“' => '"', '”' => '"', '„' => '"', '…' => '...', '’' => '\'');
foreach ($str as $_from => $_to) {
$this->html = str_replace($_from, $_to, $this->html);
}
$pdf = new PDF('P', 'mm', 'A4');
$pdf->SetDisplayMode('real');
$pdf->AddPage();
// html
$pdf->WriteHTML($this->_convert(stripslashes($this->html)), $this->bi);
// output
$pdf->Output();
// stop processing
exit;
}
示例2:
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(0, 3, 'AIR-F-2', 0, 1, 'R');
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(0, 3, utf8_decode('Página No. 3 de 10'), 0, 1, 'R');
$pdf->Cell(0, 3, utf8_decode("O.T. 916I - 2015"), 0, 1, 'R');
$pdf->Ln();
$pdf->SetTextColor(0);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 5, utf8_decode('INTRODUCCIÓN'), 0, 1, 'L');
$pdf->Ln();
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(0, 5, utf8_decode(" La iluminación industrial es uno de los principales factores ambientales de carácter microclimático, que tiene como principal finalidad facilitar la visualización de las cosas dentro del contexto espacial, de modo que el trabajo se pueda realizar en unas condiciones aceptables de eficacia, comodidad y seguridad."), 0, 'J');
$pdf->Ln();
$pdf->MultiCell(0, 5, utf8_decode(" Si se consiguen estos objetivos, las consecuencias no sólo repercuten favorablemente sobre las personas, reduciendo la fatiga, la tasa de errores y accidentes, sino que además contribuyen a aumentar la cantidad y calidad de trabajo."), 0, 'J');
$pdf->Ln();
$pdf->MultiCell(0, 5, $pdf->WriteHTML(utf8_decode(" En el presente reporte se establecen los niveles de iluminación en las diferentes áreas de la empresa <b>" . $cliente['Razon_Social'] . (strcmp($cliente['Razon_Social'], $cliente['Planta']) === 0 ? '' : ", en la " . (isset($cliente['Planta']) ? 'Planta ' . $cliente['Planta'] : '')) . "</b>, ubicada en <b>" . $cliente['Ciudad'] . ', ' . $cliente['Estado'] . "</b>, para control interno, a través de la medición directa de los mismos y su correlación con los niveles mínimos recomendados establecidos en la NOM-025-STPS-2008.")), 0, 'J');
$pdf->Ln();
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 5, utf8_decode('1. JUSTIFICACIÓN'), 0, 1, 'L');
$pdf->Ln();
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(0, 5, utf8_decode(" Según el art. 95 del Reglamento Federal de Seguridad, Higiene y Medio Ambiente, las áreas, planos y lugares de trabajo, deberán contar con las condiciones y niveles de iluminación adecuadas al tipo de actividad que se realice."), 0, 'J');
$pdf->Ln();
$pdf->MultiCell(0, 5, utf8_decode(" De acuerdo a lo anterior, se debe efectuar el reconocimiento, evaluación y control de los niveles de iluminación en el centro de trabajo, según lo establecido en los numerales 8, 9 y 10 de la NOM-025-STPS-2008."), 0, 'J');
$pdf->Ln();
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 5, utf8_decode('2. OBJETIVO'), 0, 1, 'L');
$pdf->Ln();
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 5, utf8_decode('2.1 General'), 0, 1, 'L');
$pdf->SetFont('Arial', '', 10);
示例3: freePDF
function freePDF($showpage, $flypage, $product_id, $category_id, $limitstart, $limit)
{
global $db, $sess, $auth, $my, $perm, $VM_LANG, $mosConfig_live_site, $mosConfig_sitename, $mosConfig_offset, $mosConfig_hideCreateDate, $mosConfig_hideAuthor, $mosConfig_hideModifyDate, $mm_action_url, $database, $mainframe, $mosConfig_absolute_path, $vendor_full_image, $vendor_name, $limitstart, $limit, $vm_mainframe, $keyword, $cur_template;
while (@ob_end_clean()) {
}
error_reporting(0);
ini_set("allow_url_fopen", "1");
switch ($showpage) {
case "shop.product_details":
$_REQUEST['flypage'] = "shop.flypage_lite_pdf";
$_REQUEST['product_id'] = $product_id;
ob_start();
include PAGEPATH . $showpage . '.php';
$html .= ob_get_contents();
ob_end_clean();
$html = repairImageLinks($html);
break;
case "shop.browse":
// vmInputFilter is needed for the browse page
if (!isset($vmInputFilter) || !isset($GLOBALS['vmInputFilter'])) {
$GLOBALS['vmInputFilter'] = $vmInputFilter = vmInputFilter::getInstance();
}
$_REQUEST['category_id'] = $category_id;
ob_start();
include PAGEPATH . $showpage . '.php';
$html .= ob_get_contents();
ob_end_clean();
$html = repairImageLinks($html);
break;
}
$logo = IMAGEPATH . "vendor/{$vendor_full_image}";
$logourl = IMAGEURL . "vendor/{$vendor_full_image}";
if (version_compare(phpversion(), '5.0') < 0 || extension_loaded('domxml') || !file_exists(CLASSPATH . "pdf/dompdf/dompdf_config.inc.php")) {
define('FPDF_FONTPATH', CLASSPATH . 'pdf/font/');
define('RELATIVE_PATH', CLASSPATH . 'pdf/');
require CLASSPATH . 'pdf/html2fpdf.php';
require CLASSPATH . 'pdf/html2fpdf_site.php';
$pdf = new PDF();
$pdf->AddPage();
$pdf->SetFont('Arial', '', 11);
$pdf->InitLogo($logo);
$pdf->PutTitle($mosConfig_sitename);
$pdf->PutAuthor($vendor_name);
$html = str_replace("&", "&", $html);
$pdf->WriteHTML($html);
$pdf->Output();
} elseif (file_exists(CLASSPATH . "pdf/dompdf/dompdf_config.inc.php")) {
// In this part you can use the dompdf library (http://www.digitaljunkies.ca/dompdf/)
// Just extract the dompdf archive to /classes/pdf/dompdf
//require_once( CLASSPATH . "pdf/dompdf/dompdf_config.inc.php" );
//require_once( CLASSPATH . "pdf/dompdf/load_font.php" );
//require_once( CLASSPATH . "pdf/dompdf/dompdf.php" );
//define('DOMPDF_FONTPATH', CLASSPATH.'pdf/dompdf/lib/fonts/');
//define( 'RELATIVE_PATH', CLASSPATH.'pdf/dompdf/' );
$image_details = getimagesize($logo);
$footer = '<script type="text/php">
if ( isset($pdf) ) {
// Open the object: all drawing commands will
// go to the object instead of the current page
$footer = $pdf->open_object();
$w = $pdf->get_width();
$h = $pdf->get_height();
// Draw a line along the bottom
$y = $h - 2 * 12 - 24;
$pdf->line(16, $y, $w - 16, $y, "grey", 1);
// Add a logo
$img_w = 2 * 72; // 2 inches, in points
$img_h = 1 * 72; // 1 inch, in points -- change these as required
$pdf->image("' . $logourl . '", "' . $image_details[2] . '", ($w - $img_w) / 2.0, $y - $img_h, $img_w, $img_h);
// Close the object (stop capture)
$pdf->close_object();
// Add the object to every page. You can
// also specify "odd" or "even"
$pdf->add_object($footer, "all");
}
</script>';
$website = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>' . $mainframe->getHead() . '
<link rel="stylesheet" href="templates/' . $cur_template . '/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="' . VM_THEMEURL . 'theme.css" type="text/css" />
<link rel="shortcut icon" href="' . $mosConfig_live_site . '/images/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; ' . _ISO . '" />
<meta name="robots" content="noindex, nofollow" />
</head>
<body class="contentpane">
' . $html . '
' . $footer . '
</body>
</html>';
$website = str_replace("resized%2F", "", $website);
$website = str_replace("&", "&", $website);
$website = str_replace("#", "", $website);
//.........这里部分代码省略.........
示例4: PDF
$pdf = new PDF();
$pdf->SetCreator($pdf_config['creator']);
$pdf->SetTitle($pdf_data['title']);
$pdf->SetAuthor($pdf_config['url']);
$pdf->SetSubject($pdf_data['author']);
$out = $pdf_config['url'] . ', ' . $pdf_data['author'] . ', ' . $pdf_data['title'] . ', ' . $pdf_data['subtitle'] . ', ' . $pdf_data['subsubtitle'];
$pdf->SetKeywords($out);
$pdf->SetAutoPageBreak(true, 25);
$pdf->SetMargins($pdf_config['margin']['left'], $pdf_config['margin']['top'], $pdf_config['margin']['right']);
$pdf->Open();
//First page
$pdf->AddPage();
$pdf->SetXY(24, 25);
$pdf->SetTextColor(10, 60, 160);
$pdf->SetFont($pdf_config['font']['slogan']['family'], $pdf_config['font']['slogan']['style'], $pdf_config['font']['slogan']['size']);
$pdf->WriteHTML($pdf_config['slogan'], $pdf_config['scale']);
//$pdf->Image($pdf_config['logo']['path'],$pdf_config['logo']['left'],$pdf_config['logo']['top'],$pdf_config['logo']['width'],$pdf_config['logo']['height'],'',$pdf_config['url']);
$pdf->Line(25, 30, 190, 30);
$pdf->SetXY(25, 35);
$pdf->SetFont($pdf_config['font']['title']['family'], $pdf_config['font']['title']['style'], $pdf_config['font']['title']['size']);
$pdf->WriteHTML($pdf_data['title'], $pdf_config['scale']);
if ($pdf_data['subtitle'] != '') {
$pdf->WriteHTML($puff, $pdf_config['scale']);
$pdf->SetFont($pdf_config['font']['subtitle']['family'], $pdf_config['font']['subtitle']['style'], $pdf_config['font']['subtitle']['size']);
$pdf->WriteHTML($pdf_data['subtitle'], $pdf_config['scale']);
}
if ($pdf_data['subsubtitle'] != '') {
$pdf->WriteHTML($puff, $pdf_config['scale']);
$pdf->SetFont($pdf_config['font']['subsubtitle']['family'], $pdf_config['font']['subsubtitle']['style'], $pdf_config['font']['subsubtitle']['size']);
$pdf->WriteHTML($pdf_data['subsubtitle'], $pdf_config['scale']);
}
示例5: elseif
$order_str = 'alliance_honor DESC';
} elseif ($order == 'points_avg') {
$order_str = 'alliance_rank_points_avg ASC';
}
$listquery = $db->query('SELECT alliance_tag, alliance_name, alliance_member, alliance_planets, alliance_honor, alliance_points FROM alliance ORDER BY ' . $order_str);
$anfang = '<table><tr><td width="75">' . $place . '</td><td width="100">Tag:</td><td width="250">' . $name . '</td><td width="100">' . $members . '</td><td width="100">' . $planets . '</td><td width="85">' . $honor . '</td><td width="85">' . $points . '</td><td width="85">' . $pointsavg . '</td></tr>';
$ende = '</table>';
$pdf = new PDF();
//$pdf->SetAuthor($game->player['user_name']);
$pdf->SetAuthor('http://www.stfc.it');
$pdf->SetTitle($config['site_url']);
$pdf->AddPage(L);
$pdf->SetFont('arial', '', 16);
$pdf->SetTextColor(250, 0, 0);
$pdf->Cell(0, 10, $allyrank, 'B', 1);
$pdf->Ln(0.15);
$pdf->SetFont('Arial', 'I', 8);
$pdf->SetTextColor(0, 0, 0);
$pdf->MultiCell(0, 7, $created . date('d.m.y H:i', time()) . '', 0, 'R');
$pdf->SetAutoPageBreak(true, 15.0);
$pdf->SetFont('Arial', '', 12);
$pdf->WriteHTML($anfang);
while (($alliance = $db->fetchrow($listquery)) != false) {
$gen = '<tr><td>' . $rang_alliance . '.</td><td>' . $alliance['alliance_tag'] . '</td><td>' . $alliance['alliance_name'] . '</td><td>' . $alliance['alliance_member'] . '</td><td>' . $alliance['alliance_planets'] . '</td><td>' . ($alliance['alliance_honor'] < 1 ? '-' : '' . $user['alliance_honor'] . '') . '</td><td>' . $alliance['alliance_points'] . '</td><td>' . round($alliance['alliance_points'] / $alliance['alliance_member']) . '</td></tr>';
$pdf->WriteHTML($gen);
$rang_alliance++;
}
$pdf->WriteHTML($ende);
$pdf->Output();
}
}
示例6: PDF
// Siempre y cuando los datos extraídos de la BD sean UTF8 (no lo probe con otra codificación)
$nombre = html_entity_decode($nombre);
$descripcion = html_entity_decode($descripcion);
$cliente = html_entity_decode($cliente);
$codigo = html_entity_decode($codigo);
$telefono = html_entity_decode($telefono);
//Creamos una nueva instancia de la clase
$pdf = new PDF();
//Añádimos la primera página
$pdf->AddPage();
$pdf->SetFont('Helvetica', '', 20);
$pdf->Ln(12);
$pdf->Line(10, 30, 200, 30);
$pdf->SetFontSize(17);
$pdf->SetTextColor(44, 62, 80);
$pdf->WriteHTML("Online Computer Shop");
$pdf->SetTextColor(0);
$pdf->SetLeftMargin(155);
$pdf->SetFontSize(14);
$pdf->Ln(-15);
$pdf->WriteHTML("<br><br><b>Fecha:</b> " . date("d/m/Y", time() - 25200));
$pdf->WriteHTML("<br><b>Hora:</b> " . date("H:i:s", time() - 25200) . "\n\n");
$pdf->SetLeftMargin(10);
$pdf->Ln(13);
// Otra parte importante, luego de pasar las variables por la función html_entity_decode, para que se vean bien los acentos y las ñ, hay que pasarlas por otra
// función que es utf8_decode
$pdf->SetFontSize(14);
$pdf->WriteHTML(utf8_decode($nombre));
$pdf->WriteHTML("<br><br>");
$pdf->WriteHTML(utf8_decode($cliente));
$pdf->WriteHTML("<br>");
示例7: define
$serie_nombre = $rs->fields["SGD_SRD_DESCRIP"];
$subserie_grb = $rs->fields["SGD_SBRD_CODIGO"];
$subserie_nombre = $rs->fields["SGD_SBRD_DESCRIP"]; **/
$inf .= "\n<TABLE BORDER=1>\n<TR>\n\t<TD BGCOLOR='#CCCCCC' WIDTH='110'>FECHA DE RAD</TD>\n\t<TD WIDTH=200>\n\t{$radi_fech_radi}\n\t</TD>\n\t<TD BGCOLOR='#CCCCCC' WIDTH='80'>ASUNTO \n\t</TD>\n\t<TD WIDTH=360> \n\t{$ra_asun}\n</TR>\n<TR>\n<TD BGCOLOR='#CCCCCC' WIDTH=110> \n" . $tip3Nombre[1][$ent] . ".</TD>\n<TD WIDTH=200> \n{$nombret_us1}\n</td>\n<td WIDTH=80 bgcolor='#CCCCCC'>DIRECCION</td>\n<td WIDTH=360> \n{$direccion_us1}\n({$dpto_nombre_us1} / {$muni_nombre_us1})\n</td>\n</tr>\n<TR>\n<TD WIDTH='110' bgcolor='#CCCCCC'> \n" . $tip3Nombre[2][$ent] . ".</td>\n<TD WIDTH='200'> \n{$nombret_us2}\n</TD>\n<TD BGCOLOR='#CCCCCC' width='80' >\nDIRECCION\n</TD>\n<TD WIDTH='360'> \n{$direccion_us2}\n({$dpto_nombre_us2} / {$muni_nombre_us2})\n</TD>\n</tr>\n<tr><TD WIDTH=110 bgcolor='#CCCCCC'>" . $tip3Nombre[3][$ent] . ".</td>\n<TD width='200'>{$nombret_us3}</td>\n<TD bgcolor='#CCCCCC' width='80'>DIRECCION \n</td>\n<TD width='360'>\n{$direccion_us3} ({$dpto_nombre_us3} / {$muni_nombre_us3})\n</TD>\n</TR>\n<TR>\n<TD WIDTH='375' BGCOLOR='#CCCCCC' colspan=2><CENTER><B>Cta / Contrato</B></CENTER></TD>\n<TD WIDTH='375' BGCOLOR='#CCCCCC' colspan=2><CENTER><B>SECTOR</B></CENTER></TD>\n</TR>\n<TR>\n<TD WIDTH='375' colspan=2>-{$cuentai}</TD>\n<TD WIDTH='375' colspan=2><CENTER><B>-{$sector_nombre}</B></CENTER></TD>\n</TR>\n<TR>\n<TD BGCOLOR='#CCCCCC' WIDTH='500' colspan=2><CENTER><B>TRD</B></CENTER>\n</TD>\n<TD BGCOLOR='#CCCCCC' WIDTH='250' colspan=2><CENTER><B>CAUSAL</B></CENTER>\n</TD>\n</TD>\n</TR>\n<TR>\n<TD WIDTH='500' colspan=2><CENTER>{$serie_nombre} / {$subserie_nombre} / {$tpdoc_nombreTRD}</CENTER>\n</TD>\n<TD WIDTH='250' colspan=2><CENTER>{$causal_nombre} / {$dcausal_nombre}</CENTER>\n</TD>\n</TR>\n<TR>\n<TD WIDTH='500' HEIGHT='150' colspan=3><CENTER>-</CENTER>\n</TD>\n<TD WIDTH='250' HEIGHT='150' colspan=3><CENTER>-</CENTER>\n</TD>\n</TR>\n<TR><TD WIDTH='500' colspan=3><CENTER>Firma Usuario</CENTER>\n</TD>\n<TD WIDTH='250' colspan=3><CENTER>Firma Funcionario {$db->entidad}</CENTER>\n</TD>\n</TR>\n</TABLE>";
} else {
echo "<center><b><span class='eerrores'>NO TIENE AUTORIZACION PARA INGRESAR</span><BR><span class='eerrores'>\n\t<a href='login.php' target=_parent>Por Favor intente validarse de nuevo. Presione aca!</span></a>";
}
define(FPDF_FONTPATH, '../fpdf/font/');
require "../fpdf/html_table.php";
error_reporting(7);
$espacio = "<table><tr><td>............................................................................................................................................................................................................................................................................................................................................................................</td></tr></table>";
//$pdf = new PDF("L","mm","A4");
$pdf = new PDF("P", "mm", "A4");
$pdf->AddPage();
$pdf->SetFont('Arial', '', 8);
$pdf->WriteHTML($inf1 . $inf . $espacio . $inf1 . $inf);
$arpdf_tmp = "../{$carpetaBodega}/pdfs/planillas/envios/{$krd}" . "_lis_IMP.pdf";
$pdf->Output($arpdf_tmp);
echo "<br>";
echo $inf1 . $inf;
?>
<br>
<table border=0 width=80%><tr><td>
<?php
echo "<center><a class=vinculos href='{$arpdf_tmp}?fechaf" . date("dmYh") . time("his") . "'>Abrir Archivo Pdf</a></center></td><td>";
if (!trim($radi_path) and !$subirImagen) {
echo "<center><input type=submit name=subirImagen value='COLOCAR PDF COMO IMAGEN DEL RADICADO'></center>";
}
?>
</td></tr></table>
<?php
示例8: run
function run()
{
// change some win codes, and xhtml into html
$str = array('<br />' => '<br>', '<hr />' => '<hr>', '[r]' => '<red>', '[/r]' => '</red>', '[l]' => '<blue>', '[/l]' => '</blue>', '“' => '"', '”' => '"', '„' => '"', '…' => '...', '’' => '\'');
foreach ($str as $_from => $_to) {
$this->html = str_replace($_from, $_to, $this->html);
}
$pdf = new PDF('P', 'mm', 'A4', $this->title, $this->articleurl, false);
$pdf->Open();
$pdf->SetCompression(true);
$pdf->SetCreator("Script by Radek HULAN, http://hulan.info/blog/");
$pdf->SetDisplayMode('real');
$pdf->SetTitle($this->_convert($this->title));
$pdf->SetAuthor($this->articleurl);
$pdf->AddPage();
// face
$pdf->PutMainTitle($this->_convert($this->title));
$pdf->PutMinorHeading('Article URI');
$pdf->PutMinorTitle($this->articleurl, $this->articleurl);
$pdf->PutMinorHeading('Author');
$pdf->PutMinorTitle($this->_convert($this->author));
$pdf->PutMinorHeading("Published: " . date("F j, Y, g:i a", $this->date));
$pdf->PutLine();
$pdf->Ln(10);
// html
$pdf->WriteHTML($this->_convert(stripslashes($this->html)), $this->bi);
//save and redirect
$filename = $this->directory . $this->_makeFileName($this->title) . '.pdf';
$http = $this->http . $this->_makeFileName($this->title) . '.pdf';
$pdf->Output($filename);
header("Location: {$http}");
// cleanup
$files = opendir($this->directory);
while (false !== ($filename = readdir($files))) {
if (!(strpos($filename, '.pdf') === false)) {
// delete old temp files
$time = filectime($this->directory . $filename);
if (!($time === false) && $time > 0) {
if ($time + $this->delete * 60 < time()) {
unlink($this->directory . $filename);
}
}
}
}
// stop processing
exit;
}
示例9: fclose
fclose($fp);
$fecha_dia = date("Ymd - H:i:s");
$html = $htmlE;
$html .= $btt->tabla_html;
$html = iconv('UTF-8', 'ISO-8859-1//TRANSLIT//IGNORE', $html);
error_reporting(7);
define(FPDF_FONTPATH, '../fpdf/font/');
require "../fpdf/html_table.php";
error_reporting(7);
$pdf = new PDF("L", "mm", "A4");
$pdf->AddPage();
$pdf->SetFont('Arial', '', 8);
$entidad = $db->entidad;
$encabezado = "<table border=0>\n <tr><center><td width=1120 height=70>{$entidad_largo}</td></center></tr>\n\t\t\t<tr><td width=1120 height=40> </td></tr>\n\t\t\t<tr><td width=1120 height=40> </td></tr>\n\t\t\t<tr><td width=1120 height=40> </td></tr>\n\t\t\t<tr><td width=1120 height=80> </td></tr> \n\t\t\t<tr><td width=1120 height=20>Dependencia : {$depe_nomb} </td></tr>\n\t\t\t<tr><td width=1120 height=20> Usuario responsable : " . utf8_decode($usua_nomb) . " </td></tr>\n\t\t\t<tr><td width=1120 height=20> Fecha Inicial : {$fecha_ini} </td></tr>\n\t\t\t<tr><td width=1120 height=20> Fecha Final : {$fecha_fin} </td></tr>\n\t\t\t<tr><td width=1120 height=20> Fecha Generado : {$fecha_dia} </td></tr>\n\t\t\t<tr><td width=1120 height=20> Número de Registros : {$no_registros} </td></tr>\n\t\t\t<tr><td width=1120 height=40></td></tr>\n\t\t\t</table>";
$fin = "<table border=0 >\n\t\t <tr><td width=1120 height=40></td></tr>\n\t\t\t<tr><td width=1120 height=40 >Fecha de Entrega ________________________________________________</td></tr>\n\t\t\t<tr><td width=560 height=40 > Funcionario que Entrega ________________________________________________</td>\n\t\t\t<td width=560 height=30 > Funcionario que Recibe ______________________________________________</td></tr>\n\t\t\t<tr><td width=1120 height=40 >Observaciones\t ____________________________________________________________________________________________________________________________________________________________________</td></tr>\n\t\t\t<tr><td width=1120 height=40 >__________________________________________________________________________________________________________________________________________________________________________________</td></tr>\n\t\t\t<tr><td width=1120 height=40></td></tr>\n\t\t</table>\n\t\t<br>";
$pdf->WriteHTML($encabezado . iconv($odt->codificacion($html), 'ISO-8859-1', $html) . $fin);
require "{$ruta_raiz}/config.php";
$archivo = "/tmp/lst_entrega" . date("dmY") . time("his") . ".pdf";
$arpdf_tmp = "../{$carpetaBodega}{$archivo}";
$pdf->Output($arpdf_tmp, 'F');
echo "<a href='../seguridadImagen.php?fec=" . base64_encode($archivo) . "' target='" . date("dmYh") . time("his") . "' class='vinculos'>Abrir archivo pdf</a><br/>";
}
echo "<center><a href='{$ruta_raiz}/envios/cuerpoMarcaEnviar.php?{$phpsession}&krd={$krd}&usua_perm_impresion={$usua_perm_impresion}&carpeta=8&nomcarpeta=Documentos Para Impresion&orderTipo=desc&orderNo=3' target='mainFrame' class='vinculos'>Volver a listado de impresión</a></center>";
?>
</form>
<?php
} else {
echo "<hr><center><b><span class='alarmas'>Operacion CANCELADA</span></center></b></hr>";
}
?>
</body>
示例10: die
$this->Cell($w[1], 6, $row[1], 'LR', 0, 'L', $fill);
$this->Cell($w[2], 6, number_format($row[2], 0, ',', ' '), 'LR', 0, 'R', $fill);
$this->Cell($w[3], 6, number_format($row[3], 0, ',', ' '), 'LR', 0, 'R', $fill);
$this->Ln();
$fill = !$fill;
}
$this->Cell(array_sum($w), 0, '', 'T');
}
}
//NL) does not work with wikka
//vérification de sécurité
if (!eregi("wakka.php", $_SERVER['PHP_SELF'])) {
die("accès direct interdit");
}
if ($this->HasAccess("read")) {
//Instanciation de la classe dérivée
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->SetMargins(10, 10, 10);
$pdf->setWikiPage($this->GetPageTag());
$pdf->AddPage();
$pdf->WriteHTML($this->Format($this->page["body"], "wakka"));
$pdf->Output();
//}
//}
} else {
return;
}
?>
示例11:
if (strlen($row['syno']) > 0) {
$pdf->MultiCell(0, 5, "Synonymes : " . $row['syno']);
}
$pdf->SetFont("Arial", "I", 12);
$pdf->MultiCell(0, 5, $row['famille'], 0);
$pdf->SetFont("Arial", "B", 10);
if (strlen($row['nom_fr']) > 0) {
$pdf->MultiCell(0, 5, $row['nom_fr'], 0);
}
$pdf->SetFont("Arial", "", 10);
$pdf->Ln(3);
if (strlen($row['descr']) > 0) {
$pdf->AjouterChapitre("Description", convert_txt($row['descr']));
}
if (strlen($row['biolo']) > 0) {
$pdf->WriteHTML("<b>Type biologique : </b>" . $biolo_txt[$row['biolo']] . "<br>");
}
if (strlen($row['cycle']) > 0) {
$pdf->WriteHTML("<b>Cycle de vie : </b>" . $cycle_txt[$row['cycle']] . "<br>");
}
if (strlen($row['pheno']) > 0) {
$pdf->WriteHTML("<b>Floraison : </b>" . $row['pheno'] . "<br>");
}
$pdf->Ln(3);
$pdf->Ln(2);
$pdf->TitreChapitre("Aire de répartition");
if (strlen($row['choro']) > 0) {
$pdf->WriteHTML("<b>Type chorologique : </b>" . $row['choro'] . "<br>");
}
if (strlen($row['repart_gl']) > 0) {
$pdf->AjouterChapitre("Générale", convert_txt($row['repart_gl']));
示例12: PDF
}
}
$pdf = new PDF();
$pdf->enableBookmarks = TRUE;
$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetDisplayMode("real");
foreach ($arrContent as $key => $value) {
$pdf->rubrik = $arrRubrik[$key];
$pdf->thema = $arrThema[$key];
$pdf->categories = $tree->categoryName;
$date = $arrDatum[$key];
$author = $arrAuthor[$key];
$pdf->AddPage();
$pdf->SetFont("Arial", "", 12);
$pdf->WriteHTML(unhtmlentities($value));
}
$pdfFile = PMF_ROOT_DIR . "/pdf/faq.pdf";
$pdf->Output($pdfFile);
print "<p>" . $PMF_LANG["ad_export_full_faq"] . "<a href=\"../pdf/faq.pdf\" target=\"_blank\">" . $PMF_CONF["title"] . "</a></p>";
}
if (isset($submit[3])) {
// XML DocBook export
require PMF_ROOT_DIR . "/inc/docbook.php";
$parentID = 0;
$rubrik = 0;
$sql = '';
$selectString = '';
$export = new DocBook_XML_Export($DB);
$export->delete_file();
// Set the FAQ title
示例13:
tidak terpisahkan dari <br>
nomor dan tanggal <br>
surat pada agenda <br></i>
</td>
<td style="vertical-align: text-top;">
<b> CATATAN </b>
<br>
' .$row['isi_dis']. '
<br>
<br>
<center>
Tangerang,' .$row['tgl_agen']. '
<br>
' .$departemen. '
<br>
<br>
<br>
<br>
<u> ' .$nama. '</u>
</u>
</center>
</td>
</tr>
</table>';
if(ini_get('magic_quotes_gpc')=='1')
$text=stripslashes($text);
$pdf->WriteHTML($text);
$pdf->Output();
exit;
?>
示例14: date
$pdf->SetLeftMargin(25);
$pdf->SetRightMargin(25);
$pdf->SetFont('Arial', 'B', 12);
$pdf->ln(22);
$pdf->Cell(170, 2, "No. de Radicado:" . $numradicado, 0, 1, R);
//$pdf->SetFont('Free3of9', '', 16);
$fecha = date("Y/m/d");
$pdf->Cell(170, 2, " ", 0, 1, R);
$pdf->Cell(170, 2, "Fecha : " . $fecha . " ", 0, 1, R);
//$pdf->Cell(170, 10,$lugar."., ". $fecha, 0, 1, L);
$encabezado = "{$numradicado} <br> {$lugar}," . date("Y/M/D");
$pdf->ln(17);
$pdf->SetFont('Arial', '', 12);
$pdf->WriteHtml($asu);
$pdf->ln(19);
//$pdf->Image('http://debian/orfeo-3.8.0/logoEntidad.jpg' , 25 ,5, 160 , 25,'JPG', 'http://www.correlibre.org');
$pdf->Image('http://debian/orfeo-3.8.0/logoEntidadPiePagina.jpg', 25, 270, 170, 20, 'JPG', 'http://www.correlibre.org');
//$pdf->Cell(60, 5, $mensaje, 0, 1, L);
$pdf->WriteHTML("<HTML><BODY>" . $mensaje . "</BODY></HTML>");
//echo "<hr>$mensaje<hr> $asu";
$pdf->ln(5);
$pdf->MultiCell(0, 5, $reseptor, 0, J);
$primerno = substr($numRadicadoPadre, 0, 4);
$segundono = substr($numRadicadoPadre, 4, 3);
$ruta = "/" . $primerno . "/" . $segundono . "/docs/" . $numradicado;
$adjuntos = "../bodega" . $ruta;
$pdf->Output($adjuntos . '.pdf', 'f');
$enlace = "../bodega" . $ruta . '.pdf';
radi_paht($db, $ruta, $numradicado);
return $numradicado . '.pdf';
}
示例15: stripslashes
//array("\\r\\n", "\\n", "\\r");
$newReport = str_replace($order, ' ', $content['newsMonth']);
$newerReport = str_replace("\\n", '*', $newReport);
$pdf->PrintChapter(3, '', stripslashes($newerReport));
$pdf->Ln();
}
}
// Blog info ######################################################
//$pdf->Ln();
$pdf->SetFont('Helvetica', '', 9);
$pdf->SetFont('', 'B');
//$pdf->WriteHTML('__________________________________________________________________________________________________________');
$pdf->PrintChapter(1, '', '_________________________________________________');
$pdf->Ln();
//$pdf->Ln();
$pdf->WriteHTML('Read more on our personal blogs');
$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('Times', '', 9);
$query_getData = "SELECT nameFull, blogName, blogURL, blogDescription FROM userdata";
$result_getData = mysql_query($query_getData, $cxn) or die("Couldn't execute query 1");
// Write blog info
while ($content = mysql_fetch_assoc($result_getData)) {
if ($content['nameFull'] != '' && $content['blogName'] != '') {
//$pdf->SetFont('','I');
$pdf->SetFont('', '');
$pdf->WriteHTML('<i>' . $content['blogName'] . '</i> - by ' . $content['nameFull'] . ' - ');
$pdf->SetFont('', '');
$pdf->WriteHTML('<a href=' . $content['blogURL'] . '>Visit blog</a><br />');
$pdf->WriteHTML($content['blogDescription']);
$pdf->Ln(8);