Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ps_get_parameter(3) [php man page]

PS_GET_PARAMETER(3)							 1						       PS_GET_PARAMETER(3)

ps_get_parameter - Gets certain parameters

SYNOPSIS
string ps_get_parameter (resource $psdoc, string $name, [float $modifier]) DESCRIPTION
Gets several parameters which were directly set by ps_set_parameter(3) or indirectly by one of the other functions. Parameters are by def- inition string values. This function cannot be used to retrieve resources which were also set by ps_set_parameter(3). The parameter $name can have the following values. o fontname - The name of the currently active font or the font whose identifier is passed in parameter $modifier. o fontencoding - The encoding of the currently active font. o dottedversion - The version of the underlying pslib library in the format <major>.<minor>.<subminor> o scope - The current drawing scope. Can be object, document, null, page, pattern, path, template, prolog, font, glyph. o ligaturedisolvechar - 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'. o imageencoding - The encoding used for encoding images. Can be either hex or 85. hex encoding uses two bytes in the postscript file each byte in the image. 85 stand for Ascii85 encoding. o linenumbermode - Set to paragraph if lines are numbered within a paragraph or box if they are numbered within the surrounding box. o linebreak - Only used if text is output with ps_show_boxed(3). If set to TRUE a carriage return will add a line break. o parbreak - Only used if text is output with ps_show_boxed(3). If set to TRUE a carriage return will start a new paragraph. o hyphenation - Only used if text is output with ps_show_boxed(3). If set to TRUE the paragraph will be hyphenated if a hypen dic- tionary is set and exists. o hyphendict - Filename of the dictionary used for hyphenation pattern. PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $name - Name of the parameter. o $modifier - 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. RETURN VALUES
Returns the value of the parameter or FALSE on failure. SEE ALSO
ps_set_parameter(3). PHP Documentation Group PS_GET_PARAMETER(3)

Check Out this Related Man Page

PS_BEGIN_PAGE(3)							 1							  PS_BEGIN_PAGE(3)

ps_begin_page - Start a new page

SYNOPSIS
bool ps_begin_page (resource $psdoc, float $width, float $height) DESCRIPTION
Starts a new page. Although the parameters $width and $height imply a different page size for each page, this is not possible in Post- Script. The first call of ps_begin_page(3) will set the page size for the whole document. Consecutive calls will have no effect, except for creating a new page. The situation is different if you intent to convert the PostScript document into PDF. This function places pdfmarks into the document which can set the size for each page indiviually. The resulting PDF document will have different page sizes. Though PostScript does not know different page sizes, pslib places a bounding box for each page into the document. This size is evaluated by some PostScript viewers and will have precedence over the BoundingBox in the Header of the document. This can lead to unexpected results when you set a BoundingBox whose lower left corner is not (0, 0), because the bounding box of the page will always have a lower left corner (0, 0) and overwrites the global setting. Each page is encapsulated into save/restore. This means, that most of the settings made on one page will not be retained on the next page. If there is up to the first call of ps_begin_page(3) no call of ps_findfont(3), then the header of the PostScript document will be output and the bounding box will be set to the size of the first page. The lower left corner of the bounding box is set to (0, 0). If ps_find- font(3) was called before, then the header has been output already, and the document will not have a valid bounding box. In order to pre- vent this, one should call ps_set_info(3) to set the info field BoundingBox and possibly Orientation before any ps_findfont(3) or ps_begin_page(3) calls. Note Up to version 0.2.6 of pslib, this function will always overwrite the BoundingBox and Orientation, if it has been set before with ps_set_info(3) and ps_findfont(3) has not been called before. PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $width - The width of the page in pixel, e.g. 596 for A4 format. o $height - The height of the page in pixel, e.g. 842 for A4 format. RETURN VALUES
Returns TRUE on success or FALSE on failure. SEE ALSO
ps_end_page(3), ps_findfont(3), ps_set_info(3). PHP Documentation Group PS_BEGIN_PAGE(3)
Man Page