Located a script that calls PDFbox and the files are open source. You'll have to verify the licensing yourself.
I'm putting it here in case I need to locate the original again.
I found this:
https://www.codeproject.com/articles/831588/printing-pdf-silently-in-servoyTo get it to work at 7.4.8, I downloaded a prior version of pdfbox, but it may work with the current version after requiring an install of both
fontbox-1.8.9.jar and pdfbox-1.8.9.jar downloaded from
https://pdfbox.apache.org/ into the application_server/beans directory.
I literally struggled with Velocity Report setting up the Report folder set up , an appropriate template file and the css file, along with what is permissible with template variables and incoming data.
Left only to have to silently print the PDF file when in use on a web client, although that test remains to be seen whether I'd done it correctly to print on the server's printer rather than the client's.
The file did open in the PDF viewer from Smart Client for another purpose, while I went round and round with attempting to send a joined foundset instead of a dataset.
btw, the class docs for PDFbox are here
https://pdfbox.apache.org/docs/1.8.10/javadocs/index.html?org/apache/pdfbox/pdmodel/PDDocument.html.
Hope this helps someone else.
--Joe.