Setting security options programatically

 We have a requirement for a server process to create PDFs with different security characteristics.  I thought of doing this by modifying registry settings on fly, but I can't find any information about where PDFCreator stores this information - not apparently with its other settings.

As another alternative I thought of creating multiple virtual printers, each with its own security settings, but I don't understand how to set security seperately for each virtual printer.

Could anybody advise me on either of these approaches or suggest an alternative?

 Please ignore previous posting - found registry settings