本文整理汇总了PHP中Cezpdf::Cezpdf方法的典型用法代码示例。如果您正苦于以下问题:PHP Cezpdf::Cezpdf方法的具体用法?PHP Cezpdf::Cezpdf怎么用?PHP Cezpdf::Cezpdf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cezpdf
的用法示例。
在下文中一共展示了Cezpdf::Cezpdf方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pdf
function pdf()
{
$this->vp = new tx(0, 600, 600, 0);
parent::Cezpdf('letter');
$datacreator = array('Author' => 'Cordep', 'Creator' => __CONTACTO_DOCS__, 'Producer' => 'http://www.cordep.cl');
$this->addInfo($datacreator);
$this->ezSetMargins(25, 40, 25, 25);
$this->setColor(0.45, 0.45, 0.45);
$this->selectFont(__ROOT__ . '/_lib/fonts/Helvetica.afm');
//url y fecha en la parte superior
$this->ezText("www.cordep.cl\n", 10, array('left' => '10'));
$fecha = date('d/m/Y');
$this->addText(525, 751, 10, $fecha);
//imagen de cabecera
$this->ezImage(__ROOT__ . '/images/layout/ph3.jpg', 5, 552, 'none', 'left');
//datos sobre la imagen de cabecera
$this->addText(475, 729, 8, utf8_decode('<b>Corporación de Deportes</b>'));
$this->addText(436, 717, 8, utf8_decode('<b>Cámara Chilena de la Construcción</b>'));
$this->addText(430, 704, 8, 'Lago Ranco 1890, Pedro Aguirre Cerda');
$this->addText(499, 692, 8, __CONTACTO_DOCS__);
/*
$this->filledRectangle(30,30,552,600);
$this->linea( 0, 0 , 100, 30 ) ;
$this->line( 30, 30, 542, 590 ) ;
*/
}
示例2: BitPdf
function BitPdf()
{
Cezpdf::Cezpdf('TRADEPAPERBACK');
$this->loadSettings();
$this->selectFont($this->mSettings['font']);
$grammarfile = UTIL_PKG_PATH . 'htmlparser/htmlgrammar.cmp';
if ($fp = fopen($grammarfile, 'r')) {
$this->html_grammar = unserialize(fread($fp, filesize($grammarfile)));
}
fclose($fp);
}
示例3: SugarPDF
/**
* sole constructor
* @param array vars Setup values for parent class, EzPDF
*/
function SugarPDF($vars)
{
parent::Cezpdf($vars);
}
示例4: phpdocpdf
function phpdocpdf(&$pdfconverter, $fontdir, $paper = 'a4', $orientation = 'portrait')
{
Cezpdf::Cezpdf($paper, $orientation);
$this->converter = $pdfconverter;
$this->font_dir = $fontdir;
}
示例5: mainPdf
function mainPdf($itemtype, $tab_id, $save = 0, $saveas = 0)
{
global $PDF, $DB;
$config = new PluginImmobilizationsheetsConfig();
$nb_id = count($tab_id);
foreach ($tab_id as $key => $ID) {
$itemtable = getTableForItemType($itemtype);
$PDF = new Cezpdf();
$PDF->Cezpdf('a4', 'portrait');
$PDF->selectFont(GLPI_ROOT . '/lib/ezpdf/fonts/Helvetica.afm');
$PDF->ezStartPageNumbers(550, 10, 10, 'left', "GLPI PDF export - " . date("Y-m-d H:i:s") . " - " . Toolbox::decodeFromUtf8(__('Items')) . "- {PAGENUM}/{TOTALPAGENUM}");
//items
$query = "SELECT *\n FROM `" . $itemtable . "`\n WHERE `id` = '{$ID}'";
$result = $DB->query($query);
$number = $DB->numrows($result);
if ($number != 0) {
while ($data = $DB->fetch_array($result)) {
$this->generatePdf($itemtype, $data, $saveas);
}
}
if ($config->getFromDB(1)) {
if ($config->fields["use_backup"] != 1) {
if ($nb_id != $key + 1) {
$PDF->ezNewPage();
}
}
}
}
if ($save == 0) {
$PDF->ezstream();
}
}
示例6: elseif
$specialImage_bottom = $a1p_special_bottom;
} elseif ($size == "A1" && $format == "landscape") {
$specialImage_left = $a1l_special_left;
$specialImage_bottom = $a1l_special_bottom;
} elseif ($size == "A0" && $format == "portrait") {
$specialImage_left = $a0p_special_left;
$specialImage_bottom = $a0p_special_bottom;
} elseif ($size == "A0" && $format == "landscape") {
$specialImage_left = $a0l_special_left;
$specialImage_bottom = $a0l_special_bottom;
}
if ($log == true) {
$l = new log("printPDF", $array_urls);
}
$pdf = new Cezpdf();
$pdf->Cezpdf(mb_strtolower($size), $format);
$diff = array(196 => 'Adieresis', 228 => 'adieresis', 214 => 'Odieresis', 246 => 'odieresis', 220 => 'Udieresis', 252 => 'udieresis', 223 => 'germandbls');
$pdf->selectFont('../classes/fonts/LiberationSans-Regular.afm', array('encoding' => 'WinAnsiEncoding', 'differences' => $diff));
if ($size == "A4" && $format == "portrait") {
$mapOffset_left = $a4p_mapOffset_left;
$mapOffset_bottom = $a4p_mapOffset_bottom;
$header_height = $a4p_header_height;
$footer_height = $a4p_footer_height;
} else {
$mapOffset_left = $a4l_mapOffset_left;
$mapOffset_bottom = $a4l_mapOffset_bottom;
$header_height = $a4l_header_height;
$header_width = $a4l_header_width;
}
session_write_close();
$i = new weldMaps2PNG(implode("___", $array_urls), $filename);