Home > PHP > Function > PS > ps_set_border_color()

ps_set_border_color()

ps_set_border_color - Sets color of border for annotations

Syntax

bool ps_set_border_color (resource $psdoc, float $red, float $green, float $blue)

Arguments

  • psdoc - Resource identifier of the postscript file as returned by ps_new().
  • red - The red component of the border color.
  • green - The green component of the border color.
  • blue - The blue component of the border color.

Description

Links added with one of the functions ps_add_weblink(), ps_add_pdflink(), etc. will be displayed with a surounded rectangle when the postscript document is converted to pdf and viewed in a pdf viewer. This rectangle is not visible in the postscript document. This function sets the color of the rectangle's border line.

Version

PHP PECL ps >= 1.1.0

Return value

Returns TRUE on success or FALSE on failure.