I use SumatraPDF to print pdf files to a printer. Create the pdf on the server and copy it to the client, print it like this:
LET sumatra_exe$="""C:\PVX Plus Technologies\SumatraPDF\SumatraPDF.exe"""
LET sumatra_cmd$=sumatra_exe$+" -print-to """+printer$+""" -print-settings """+STR(copies)+"x"" """+pdf_client$+""""
INVOKE HIDE "[LCL]cmd.exe /C """+sumatra_cmd$+""""
For more options: https://www.sumatrapdfreader.org/docs/Command-line-arguments
LET sumatra_exe$="""C:\PVX Plus Technologies\SumatraPDF\SumatraPDF.exe"""
LET sumatra_cmd$=sumatra_exe$+" -print-to """+printer$+""" -print-settings """+STR(copies)+"x"" """+pdf_client$+""""
INVOKE HIDE "[LCL]cmd.exe /C """+sumatra_cmd$+""""
For more options: https://www.sumatrapdfreader.org/docs/Command-line-arguments