The cpdf_setlinewidth() function set the line width to width. Returns TRUE on success or FALSE on failure.