How can I/Is it possible to silently print a PDF with specific print settings and obtaining the resulting job id (in windows at least)?
Greetings,
I have a specific application for Windows I'm developing where I need to silently print a PDF to a real printer. The trick is I need to set specific printing preferences ... such as color/monochrome, # of copies, page size / source tray, etc. The printer is always set to spool documents, and it is key that I know the job id (even if its already done printing) of the resulting print job.
With windows APIs mixed in, I would imagine something like ...
OpenPrinter(printername)
StartDocPrinter(...)
-----> some SDK call to print the document based on the handles I pass it...or perhaps one page at a time after I call StartPagePrinter()
EndDocPrinter(...)
ClosePrinter()
I've been searching for something for days that would give me this sort of control, but I've been finding the documentation very difficult to find on silently printing a PDF through any means other than a command line which doesn't appear to give me the information or control I need.
Is this possible with the Adobe SDK?
I've seen other posts accomplish this by changing the printing defaults for the printer, and then sending the job silently with a commandline. This has two problems for me: 1) I still don't know the Job ID of the print job, and 2) I can't rely on the idea that other unrelated print jobs will not be sent while I'm processing the PDF ... making it difficult to use defaults as a means of controlling the settings without causing a lot of side effects.
Even just a point in the right direction would be a huge help for how I could accomplish this.
Thanks a lot,
Wayne
