Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When using Citrix / Windows Terminal Server / Remote sessions, can I initiate a pdfMachine print and have the client side send email / save / view ?

0
Posted

When using Citrix / Windows Terminal Server / Remote sessions, can I initiate a pdfMachine print and have the client side send email / save / view ?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123