Q: My customer wants to print PDF documents saved in their SAP system with a batch job silently without opening the file on a workstation.

A: We don’t think that it is possible to print a PDF in SAP directly via spool.

jPDFPrint, our library to print PDF documents comes with source code for a command line tool that you can use to print on Windows, Mac, Linux or Unix .

Install jPDFPrintCLI on the SAP-server or another server the SAP-server can reach over the network.

Build a batch-file ( “printpdf.bat” ) with 1 row:
“C:\Program Files\jPDFPrintCLI\jPDFPrintCLI.exe” -printer “\\sf_service1\MYPRINTER” “C:\temp\document.pdf”

Create ABAP code, which saves the PDF file as “C:\temp\document.pdf”, executes the batch file and then delete the PDF file.