I've read several places that it is possible to add javascript code to a pdf to have it open up the print dialog box when the pdf is displayed.
https://www.experts-exchange.com/questions/21683457/Print-Multiple-PDF-Files-to-Client-PC-from-Web-Server.html?sfQueryTermInfo=1+10+30+activex+auto+pdf+print
"We are also using a blank PDF document called print.pdf (download it from my example page). This is a single blank page PDF document with javascript built into it to print when the page is opened. "
What I need is to create the PDF, Add the Javascript to the existing PDF, and then open a new window with that pdf.
Has anybody done this before? It looks like it might be possible with iTextSharp, but i still cant figure out the code.
var objDoc = this;
var objPrintParams = doc.getPrintParams();
Do you know how to open the pdf to start adding the javacript?