in reply to PDF generation

I've used PostScript::Simple, which creates a post script file. Then you could use a tool like pstill to convert it to a PDF.