pdf_setgray double values start at 0 for black and end at 1 for white so for any shade of gray simply pick a value inbetween these 2 numbers
(PHP 4, PECL pdflib >= 1.0.0)
PDF_setgray — Establecer el color a gris [obsoleta]
$p
, float $g
) : bool
Establece el color de relleno y contorno actual a un valor de gris entre 0 y 1 inclusive. Devuelve TRUE
en caso de éxito o FALSE
en caso de error.
Esta función está obsoleta desde la versión 4 de PDFlib, use PDF_setcolor() en su lugar.
pdf_setgray double values start at 0 for black and end at 1 for white so for any shade of gray simply pick a value inbetween these 2 numbers