Hopefully Jens will answer favorably to my position. I put the smarts and effort into the ability to read, understand, and render these files. Since his script does not check for any return codes or errors, I did not include that in my code. But the solution I provided should render any valid PxM (P1, P2, or P3) file.

Valid input produces valid output. Garbage in/Garbage out (my error checking).
_________________________
Home page: http://www.kixhelp.com/hb/