int ps_open_memory_image    ( resource $psdoc   , int $gd   )

ps_open_memory_imageTakes an GD image and returns an image for placement in a PS document

psdoc

Resource identifier of the postscript file as returned by ps_new().

gd