How would I create my own XP printer driver which will do the following:
While I can't offer any specific advice, if I wanted to do what you describe, the first thing I would do is read through the source for PDFCreator — it's a Windows print driver which can spit out PDFs.