When using Citrix / Windows Terminal Server / Remote sessions, can I initiate a pdfMachine print and have the client side send email / save / view ?
NOTE: This setup is only necessary if you don’t want the default behaviour where the server side sends email / saves / views. This uses a partially implemented feature of pdfMachine that requires some manual setup. Server machine setup: Setup pdfMachine to print to a pdf file and update a text file in directory(s) on the server. 1. Install pdfMachine 2. On the “Next Action tab”, set the “Next Action” to “execute command line” and the “Command Line” to: cscript.exe c:\touchx.js “%s” NOTE : See the following FAQ about batch files in “Next Action”. 3. Create a script file (e.g. C:\touchx.js) which updates a file (e.g. c:\tmp\x.txt) in a server directory that clients can access. e.g. fn = WScript.arguments(0); fso = new ActiveXObject(“Scripting.FileSystemObject”); fso.CopyFile(fn, “c:\tmp\x.pdf”, true); f = fso.CreateTextFile(“c:\tmp\x.txt”, true); f.Close() 4. Now when a print is done on the server machine, no user interface is presented, the pdf file c:\tmp\x.pdf is generated, and then t