Would p.map create paint.ppm? If yes, try ppmtops < paint.ppm > paint.ps if you want a postscript file.
--Xin