I do the exact same thing for my invoices printed from MS Word along with all my formal letters on letterhead. I use a PDF of my letterhead but the same can be achieved with an image too.
I use the “Action after saving” to run a script when printing to PDFCreator. Can you run a script by command-line or via COM? I don’t have experience with running PDFCreator this way, sorry.
you can use the AddWatermarkToPDF.vbs script (the watermark needs to be a PDF file) in “Actions after saving”. You will need PDFTK and to tell the script where you installed it and where your PDF file for the watermark is. This will cause PDFCreator to add this watermark to any PDF as long as the option is selected. This can not be setup in the command-line, but will apply to ducuments printed via command line or COM. You can set the action after saving via COM but the easiest way is configuring it once in the options. (Public RunProgramAfterSaving As Long Public RunProgramAfterSavingProgramParameters As String Public RunProgramAfterSavingProgramname As String Public RunProgramAfterSavingWaitUntilReady As Long Public RunProgramAfterSavingWindowstyle As Long)
If fso.FileExists(tfname) Then fso.DeleteFile(fname) fso.MoveFile tfname, fname Else MsgBox “There was an error adding the Watermark!”, vbCritical, AppTitle End If
Set pdf = Nothing Set fso = Nothing Set objArgs = Nothing