Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 3904

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>ps_get_parameter</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="PostScript document creation"
HREF="ref.ps.html"><LINK
REL="PREVIOUS"
TITLE="ps_get_buffer"
HREF="function.ps-get-buffer.html"><LINK
REL="NEXT"
TITLE="ps_get_value"
HREF="function.ps-get-value.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.ps-get-buffer.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.ps-get-value.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.ps-get-parameter"
></A
>ps_get_parameter</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN191239"
></A
><P
>    (PECL)</P
>ps_get_parameter&nbsp;--&nbsp;Gets certain parameters</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN191242"
></A
><H2
>说明</H2
>string <B
CLASS="methodname"
>ps_get_parameter</B
> ( resource psdoc, string name [, float modifier] )<BR
></BR
><P
>&#13;   Gets several parameters which were directly set by
   <A
HREF="function.ps-set-parameter.html"
><B
CLASS="function"
>ps_set_parameter()</B
></A
> or indirectly by one of the other
   functions. Parameters are by definition string
   values. This function cannot be used to retrieve resources which were also
   set by <A
HREF="function.ps-set-parameter.html"
><B
CLASS="function"
>ps_set_parameter()</B
></A
>.
  </P
><P
>&#13;   The parameter <CODE
CLASS="parameter"
>name</CODE
> can have the following values.
  </P
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="literal"
>fontname</TT
></DT
><DD
><P
>&#13;       The name of the currently active font or the font whose
       identifier is passed in parameter <CODE
CLASS="parameter"
>modifier</CODE
>.
      </P
></DD
><DT
><TT
CLASS="literal"
>fontencoding</TT
></DT
><DD
><P
>&#13;       The encoding of the currently active font.
      </P
></DD
><DT
><TT
CLASS="literal"
>dottedversion</TT
></DT
><DD
><P
>&#13;       The version of the underlying pslib library in the format
       &#60;major&#62;.&#60;minor&#62;.&#60;subminor&#62;
      </P
></DD
><DT
><TT
CLASS="literal"
>scope</TT
></DT
><DD
><P
>&#13;       The current drawing scope. Can be object, document, null, page,
       pattern, path, template, prolog, font, glyph.
      </P
></DD
><DT
><TT
CLASS="literal"
>ligaturedisolvechar</TT
></DT
><DD
><P
>&#13;       The character which dissolves a ligature. If your are using a font
       which contains the ligature `ff' and `|' is the char to dissolve the
       ligature, then `f|f' will result in two `f' instead of the ligature `ff'.
      </P
></DD
><DT
><TT
CLASS="literal"
>imageencoding</TT
></DT
><DD
><P
>&#13;       The encoding used for encoding images. Can be either
       <TT
CLASS="literal"
>hex</TT
> or <TT
CLASS="literal"
>85</TT
>. hex encoding
       uses two bytes in the postscript file each byte in the image.
       85 stand for Ascii85 encoding.
      </P
></DD
><DT
><TT
CLASS="literal"
>linenumbermode</TT
></DT
><DD
><P
>&#13;       Set to <TT
CLASS="literal"
>paragraph</TT
> if lines are numbered
       within a paragraph or <TT
CLASS="literal"
>box</TT
> if they are
       numbered within the surrounding box.
      </P
></DD
><DT
><TT
CLASS="literal"
>linebreak</TT
></DT
><DD
><P
>&#13;       Only used if text is output with <A
HREF="function.ps-show-boxed.html"
><B
CLASS="function"
>ps_show_boxed()</B
></A
>.
       If set to <TT
CLASS="literal"
>true</TT
> a carriage return will add a line
       break.
      </P
></DD
><DT
><TT
CLASS="literal"
>parbreak</TT
></DT
><DD
><P
>&#13;       Only used if text is output with <A
HREF="function.ps-show-boxed.html"
><B
CLASS="function"
>ps_show_boxed()</B
></A
>.
       If set to <TT
CLASS="literal"
>true</TT
> a carriage return will start
       a new paragraph.
      </P
></DD
><DT
><TT
CLASS="literal"
>hyphenation</TT
></DT
><DD
><P
>&#13;       Only used if text is output with <A
HREF="function.ps-show-boxed.html"
><B
CLASS="function"
>ps_show_boxed()</B
></A
>.
       If set to <TT
CLASS="literal"
>true</TT
> the paragraph will be hyphenated
       if a hypen dictionary is set and exists.
      </P
></DD
><DT
><TT
CLASS="literal"
>hyphendict</TT
></DT
><DD
><P
>&#13;       Filename of the dictionary used for hyphenation pattern.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN191329"
></A
><H2
>参数</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>psdoc</CODE
></DT
><DD
><P
>&#13;       Resource identifier of the postscript file
       as returned by <A
HREF="function.ps-new.html"
><B
CLASS="function"
>ps_new()</B
></A
>.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>name</CODE
></DT
><DD
><P
>&#13;       Name of the parameter.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>modifier</CODE
></DT
><DD
><P
>&#13;       An identifier needed if a parameter of a resource is requested,
       e.g. the size of an image. In such a case the resource id is
       passed.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN191349"
></A
><H2
>返回值</H2
><P
>&#13;   Returns the value of the parameter or <TT
CLASS="constant"
><B
>FALSE</B
></TT
> in case of an error.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN191353"
></A
><H2
>参见</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="function.ps-set-parameter.html"
><B
CLASS="function"
>ps_set_parameter()</B
></A
></TD
></TR
></TBODY
></TABLE
><P
></P
>
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.ps-get-buffer.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.ps-get-value.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>ps_get_buffer</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.ps.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>ps_get_value</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>