Not sure how to go about printing to a file

Hi,

I have a need to silently print to pdf under certain circumstances, and came across PDFCreator that seems to meet my needs (at least at first glance).

Now I'm not too sure about how to go about this. Do I need to use the COM interface of PDFCreator? If not what's the best way to achieve this? This should be absolutely transparent to the user, i.e. they just click a "Print" button and the application does everything under the hood.

Thanks