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


PHP pdf_pagefoot函数代码示例

本文整理汇总了PHP中pdf_pagefoot函数的典型用法代码示例。如果您正苦于以下问题:PHP pdf_pagefoot函数的具体用法?PHP pdf_pagefoot怎么用?PHP pdf_pagefoot使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: _pagefoot

	/**
	 *   	\brief      Show footer of page
	 *   	\param      pdf     		PDF factory
	 * 		\param		object			Object invoice
	 *      \param      outputlang		Object lang for output
	 * 		\remarks	Need this->emetteur object
	 */
	function _pagefoot(&$pdf, $object, $outputlangs)
	{
		return pdf_pagefoot($pdf,$outputlangs,'SUPPLIER_INVOICE_FREE_TEXT',$this->emetteur,$this->marge_basse,$this->marge_gauche,$this->page_hauteur,$object);
	}
开发者ID:remyyounes,项目名称:dolibarr,代码行数:11,代码来源:pdf_canelle.modules.php

示例2: _pagefoot

 /**
  *   	Show footer of page. Need this->emetteur object
  *
  *   	@param	PDF			$pdf     			PDF
  * 		@param	Object		$object				Object to show
  *      @param	Translate	$outputlangs		Object lang for output
  *      @param	int			$hidefreetext		1=Hide free text
  *      @return	void
  */
 function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
 {
     return pdf_pagefoot($pdf, $outputlangs, 'SHIPPING_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, 0, $hidefreetext);
 }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:13,代码来源:pdf_rouget.modules.php

示例3: _pagefoot

 /**
  *   	Show footer of page. Need this->emetteur object
  *
  *   	@param	PDF			$pdf     			PDF
  * 		@param	Object		$object				Object to show
  *      @param	Translate	$outputlangs		Object lang for output
  *      @param	int			$hidefreetext		1=Hide free text
  *      @return	int								Return height of bottom margin including footer text
  */
 function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
 {
     $showdetails = 0;
     return pdf_pagefoot($pdf, $outputlangs, 'INVOICE_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext);
 }
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:14,代码来源:pdf_crabe.modules.php

示例4: _pagefoot

 /**
  *   	Show footer of page. Need this->emetteur object
  *
  *   	@param	PDF			$pdf     			PDF
  * 		@param	Object		$object				Object to show
  *      @param	Translate	$outputlangs		Object lang for output
  *      @param	int			$hidefreetext		1=Hide free text
  *      @return	void
  */
 function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
 {
     global $conf;
     $default_font_size = pdf_getPDFFontSize($outputlangs);
     //$showdetails=0;
     return pdf_pagefoot($pdf, $outputlangs, 'BANK_CHEQUERECEIPT_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext);
     $paramfreetext = 'BANK_CHEQUERECEIPT_FREE_TEXT';
     $marge_basse = $this->marge_basse;
     $marge_gauche = $this->marge_gauche;
     $page_hauteur = $this->page_hauteur;
     // Line of free text
     $line = !empty($conf->global->{$paramfreetext}) ? $outputlangs->convToOutputCharset($conf->global->{$paramfreetext}) : "";
     $pdf->SetFont('', '', $default_font_size - 3);
     $pdf->SetDrawColor(224, 224, 224);
     // The start of the bottom of this page footer is positioned according to # of lines
     $freetextheight = 0;
     if ($line) {
         //$line="eee<br>\nfd<strong>sf</strong>sdf<br>\nghfghg<br>";
         if (empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT)) {
             $width = 20000;
             $align = 'L';
             // By default, ask a manual break: We use a large value 20000, to not have automatic wrap. This make user understand, he need to add CR on its text.
             if (!empty($conf->global->MAIN_USE_AUTOWRAP_ON_FREETEXT)) {
                 $width = 200;
                 $align = 'C';
             }
             $freetextheight = $pdf->getStringHeight($width, $line);
         } else {
             $freetextheight = pdfGetHeightForHtmlContent($pdf, dol_htmlentitiesbr($line, 1, 'UTF-8', 0));
             // New method (works for HTML content)
             //print '<br>'.$freetextheight;exit;
         }
     }
     $marginwithfooter = $marge_basse + $freetextheight;
     $posy = $marginwithfooter + 0;
     if ($line) {
         $pdf->SetXY($dims['lm'], -$posy);
         if (empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT)) {
             $pdf->MultiCell(0, 3, $line, 0, $align, 0);
         } else {
             $pdf->writeHTMLCell($pdf->page_largeur - $pdf->margin_left - $pdf->margin_right, $freetextheight, $dims['lm'], $dims['hk'] - $marginwithfooter, dol_htmlentitiesbr($line, 1, 'UTF-8', 0));
         }
         $posy -= $freetextheight;
     }
     // On positionne le debut du bas de page selon nbre de lignes de ce bas de page
     /*
     		$nbofline=dol_nboflines_bis($line,0,$outputlangs->charset_output);
     		//print 'e'.$line.'t'.dol_nboflines($line);exit;
     		$posy=$marge_basse + ($nbofline*3);
     
     		if ($line)	// Free text
     		{
     			$pdf->SetXY($marge_gauche,-$posy);
     			$pdf->MultiCell(20000, 3, $line, 0, 'L', 0);	// Use a large value 20000, to not have automatic wrap. This make user understand, he need to add CR on its text.
     			$posy-=($nbofline*3);	// 6 of ligne + 3 of MultiCell
     		}*/
     $pdf->SetY(-$posy);
     $pdf->line($marge_gauche, $page_hauteur - $posy, 200, $page_hauteur - $posy);
     $posy--;
     /*if ($line1)
     		{
     			$pdf->SetXY($marge_gauche,-$posy);
     			$pdf->MultiCell(200, 2, $line1, 0, 'C', 0);
     		}
     
     		if ($line2)
     		{
     			$posy-=3;
     			$pdf->SetXY($marge_gauche,-$posy);
     			$pdf->MultiCell(200, 2, $line2, 0, 'C', 0);
     		}*/
     // Show page nb only on iso languages (so default Helvetica font)
     if (pdf_getPDFFont($outputlangs) == 'Helvetica') {
         $pdf->SetXY(-20, -$posy);
         $pdf->MultiCell(11, 2, $pdf->PageNo() . '/' . $pdf->getAliasNbPages(), 0, 'R', 0);
     }
 }
开发者ID:Samara94,项目名称:dolibarr,代码行数:86,代码来源:pdf_blochet.class.php


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