function.ps-set-info.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 144 行

HTML
144
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Sets information fields of document</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ps-set-border-style.html">ps_set_border_style</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ps-set-parameter.html">ps_set_parameter</a></div> <div class="up"><a href="ref.ps.html">PS Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.ps-set-info" class="refentry"> <div class="refnamediv">  <h1 class="refname">ps_set_info</h1>  <p class="verinfo">(PECL ps:1.1.0-1.3.5)</p><p class="refpurpose"><span class="refname">ps_set_info</span> &mdash; <span class="dc-title">Sets information fields of document</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>ps_set_info</b></b></span>    ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$p</tt></span>   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$key</tt></span>   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$val</tt></span>   )</div>  <p class="para rdfs-comment">   Sets certain information fields of the document. This fields will be shown   as a comment in the header of the PostScript file. If the document is   converted to pdf this fields will also be used for the document   information.  </p>  <p class="para">   The <i>BoundingBox</i> is usually set to the value given to the   first page. This only works if <a href="function.ps-findfont.html" class="function">ps_findfont()</a> has not   been called before. In such cases the BoundingBox would be left unset   unless you set it explicitly with this function.  </p>  <p class="para">   This function will have no effect anymore when the header of the postscript   file has been already written. It must be called before the first page   or the first call of <a href="function.ps-findfont.html" class="function">ps_findfont()</a>.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">psdoc</tt></i></span>     <dd>      <p class="para">       Resource identifier of the postscript file       as returned by <a href="function.ps-new.html" class="function">ps_new()</a>.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">key</tt></i></span>     <dd>      <p class="para">       The name of the information field to set. The values which can be       set are <i>Keywords</i>, <i>Subject</i>,       <i>Title</i>, <i>Creator</i>,       <i>Author</i>, <i>BoundingBox</i>, and       <i>Orientation</i>. Be aware that some of them has a       meaning to PostScript viewers.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">value</tt></i></span>     <dd>      <p class="para">       The value of the information field. The field       <i>Orientation</i> can be set to either       <i>Portrait</i> or <i>Landscape</i>. The       <i>BoundingBox</i> is a string consisting of four numbers.       The first two numbers are the coordinates of the lower left corner of       the page. The last two numbers are the coordinates of the upper       right corner.      </p>      <blockquote><p><b class="note">Note</b>:                Up to version 0.2.6 of pslib, the BoundingBox and Orientation        will be overwritten by <a href="function.ps-begin-page.html" class="function">ps_begin_page()</a>,        unless <a href="function.ps-findfont.html" class="function">ps_findfont()</a> has been called before.       <br />      </p></blockquote>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.ps-findfont.html" class="function" rel="rdfs-seeAlso">ps_findfont()</a></li>    <li class="member"><a href="function.ps-begin-page.html" class="function" rel="rdfs-seeAlso">ps_begin_page()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ps-set-border-style.html">ps_set_border_style</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ps-set-parameter.html">ps_set_parameter</a></div> <div class="up"><a href="ref.ps.html">PS Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?