當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TCPDF_STATIC::getPageMode方法代碼示例

本文整理匯總了PHP中TCPDF_STATIC::getPageMode方法的典型用法代碼示例。如果您正苦於以下問題:PHP TCPDF_STATIC::getPageMode方法的具體用法?PHP TCPDF_STATIC::getPageMode怎麽用?PHP TCPDF_STATIC::getPageMode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TCPDF_STATIC的用法示例。


在下文中一共展示了TCPDF_STATIC::getPageMode方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: SetDisplayMode

 /**
  * Defines the way the document is to be displayed by the viewer.
  * @param $zoom (mixed) The zoom to use. It can be one of the following string values or a number indicating the zooming factor to use. <ul><li>fullpage: displays the entire page on screen </li><li>fullwidth: uses maximum width of window</li><li>real: uses real size (equivalent to 100% zoom)</li><li>default: uses viewer default mode</li></ul>
  * @param $layout (string) The page layout. Possible values are:<ul><li>SinglePage Display one page at a time</li><li>OneColumn Display the pages in one column</li><li>TwoColumnLeft Display the pages in two columns, with odd-numbered pages on the left</li><li>TwoColumnRight Display the pages in two columns, with odd-numbered pages on the right</li><li>TwoPageLeft (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the left</li><li>TwoPageRight (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the right</li></ul>
  * @param $mode (string) A name object specifying how the document should be displayed when opened:<ul><li>UseNone Neither document outline nor thumbnail images visible</li><li>UseOutlines Document outline visible</li><li>UseThumbs Thumbnail images visible</li><li>FullScreen Full-screen mode, with no menu bar, window controls, or any other window visible</li><li>UseOC (PDF 1.5) Optional content group panel visible</li><li>UseAttachments (PDF 1.6) Attachments panel visible</li></ul>
  * @public
  * @since 1.2
  */
 public function SetDisplayMode($zoom, $layout = 'SinglePage', $mode = 'UseNone')
 {
     if ($zoom == 'fullpage' or $zoom == 'fullwidth' or $zoom == 'real' or $zoom == 'default' or !is_string($zoom)) {
         $this->ZoomMode = $zoom;
     } else {
         $this->Error('Incorrect zoom display mode: ' . $zoom);
     }
     $this->LayoutMode = TCPDF_STATIC::getPageLayoutMode($layout);
     $this->PageMode = TCPDF_STATIC::getPageMode($mode);
 }
開發者ID:TheTypoMaster,項目名稱:myapps,代碼行數:18,代碼來源:tcpdf.php


注:本文中的TCPDF_STATIC::getPageMode方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。