Hmm...
Okay, this is going to take a little digging. I wasn't prepared to pay Adobe's outrageous price, which is why I've never written any code for their product. I'll see if I can find any, but I can't really test it for you. (PDFCreator is a free download and works, which is why I went that way.)