当前位置: 首页>>代码示例>>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;未经允许,请勿转载。