most likely calling PDFSpool is not what you want to do. Probably you can find an answer in the COM samples installed with PDFCreator. There you can see examples of how to control PDFCreator. You then call AutoCAD to print the file and receive events, when PDFCreator has received it. You can then control naming, saving etc.