pstoimg.pl is a wrapper for running convert utility which converts PS documents to various types of image (e.g. PNG, GIF, JPEG format, Then use PagedImgPlug to deal with the the images