rpm_open

(PECL rpmreader >= 0.1.0) Opens an RPM file resource rpm_open ( string $filename ) rpm_open() will open an RPM file and will determine if the file is a valid RPM file. Parameters: filename The filename of the RPM file you wish to open. Returns: If the open succeeds, then rpm_open() will return a file pointer resource to the newly opened file.

rpm_is_valid

(PECL rpmreader >= 0.1.0) Tests a filename for validity as an RPM file bool rpm_is_valid ( string $filename ) rpm_is_valid() will test an RPM file for validity as an RPM file. This is not the same as rpm_open() as it only checks the file for validity but does not return a file pointer to be used by further functions. Parameters: filename The filename of the RPM file yo

rpm_get_tag

(PECL rpmreader >= 0.1.0) Retrieves a header tag from an RPM file mixed rpm_get_tag ( resource $rpmr, int $tagnum ) rpm_get_tag() will retrieve a given tag from the RPM file's header and return it. Parameters: rpmr A file pointer resource successfully opened by rpm_open(). tagnum The tag number to retrieve from the RPM header. This v

rpm_close

(PECL rpmreader >= 0.1.0) Closes an RPM file bool rpm_close ( resource $rpmr ) rpm_close() will close an RPM file pointer. Parameters: rpmr A file pointer resource successfully opened by rpm_open(). Returns: Returns TRUE on success or FALSE on failure. Examples: rpm_close() example

ps_translate

(PECL ps >= 1.1.0) Sets translation bool ps_translate ( resource $psdoc, float $x, float $y ) Sets a new initial point of the coordinate system. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). x x-coordinate of the origin of the translated coordinate system. y

ps_symbol

(PECL ps >= 1.2.0) Output a glyph bool ps_symbol ( resource $psdoc, int $ord ) Output the glyph at position ord in the font encoding vector of the current font. The font encoding for a font can be set when loading the font with ps_findfont(). Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). ord Th

ps_symbol_width

(PECL ps >= 1.2.0) Gets width of a glyph float ps_symbol_width ( resource $psdoc, int $ord [, int $fontid = 0 [, float $size = 0.0 ]] ) Calculates the width of a glyph in points if it was output in the given font and font size. This function needs an Adobe font metrics file to calculate the precise width. Parameters: psdoc Resource identifier of the postscript file a

ps_symbol_name

(PECL ps >= 1.2.0) Gets name of a glyph string ps_symbol_name ( resource $psdoc, int $ord [, int $fontid = 0 ] ) This function needs an Adobe font metrics file to know which glyphs are available. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). ord The parameter ord is the position of the glyph i

ps_stroke

(PECL ps >= 1.1.0) Draws the current path bool ps_stroke ( resource $psdoc ) Draws the path constructed with previously called drawing functions like ps_lineto(). Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). Returns: Returns TRUE on success or FALSE on failure.

ps_stringwidth

(PECL ps >= 1.1.0) Gets width of a string float ps_stringwidth ( resource $psdoc, string $text [, int $fontid = 0 [, float $size = 0.0 ]] ) Calculates the width of a string in points if it was output in the given font and font size. This function needs an Adobe font metrics file to calculate the precise width. If kerning is turned on, it will be taken into account. Parameters: ps