troubleshooting Question

Add Javascript to Open Print Dialog to PDF

Avatar of patricktcooke
patricktcookeFlag for United States of America asked on
JavaScriptAdobe AcrobatC#
17 Comments1 Solution3963 ViewsLast Modified:
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.

"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.
Join our community to see this answer!
Unlock 1 Answer and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros