Printing using the SDK without dialogue

I am trying to print a file to the PDF printer using the SDK but cannot get it to print the file without first asking me to select the printer.

How do print to the PDF printer without being asked to select it?