The way I've done this is in the past is with an AppleScript that
automatically looks for files added to a folder and sends them to the printer.
If you are on a Mac you should also be able to print straight from
your app using the CUPS API. Look at this OF addon for reference https://github.com/motoishmz/ofxCUPS