PHP Manual: cpdf_setgray_stroke
cpdf_setgray_stroke
Description
bool cpdf_setgray_stroke ( int pdf_document, float gray_value )Sets the current drawing color to the given gray value.
Parameters
pdf_documentThe document handle, returned by cpdf_open().
gray_valueThe gray value, as a float