I'm writing a batch PDF printing add-in (C#) for Autodesk Revit (a 3D CAD program). It is important to notice that the Print command has to be given through Revit's own API and that it's not possible to convert a drawing or a document to PDF in another way. So my best way to go about this is to alter the settings of the active print job itself through the comwrapper.
I've read several topics dealing with printing automation, and as I understand it, the best way to do it is to get access to the printing queue of the PDFcreator, and change the profile settings of the next job to automatically save it to a filename and -path without confronting the user with the PDFcreator user interface. Is this correct? From a newb perspective, what would be the best approach, in terms of accessing the job profile and changing the settings? Would I do this before or after the job is submitted to the print queue?
As a shortcut, would it be easier to create a profile (programmatically) and set that for the specific print job?
Thanks in advance.