Skip to main content
March 16, 2017
Answered

Launching a file from a PDF

  • March 16, 2017
  • 1 reply
  • 1094 views

I have set up a couple of kiosks at my work to help people fill out forms faster. But as I found out the hard way many people who come in are very computer illiterate so I added a help buttons on each page of the form that links to a short video for each page. But the following prompt always shows up.

"Launch File

The file and its view application are set to be launched by this PDF file. The file may contain programs, macros, or viruses that could potentially harm your computer. Only open the file if you are sure it is safe. If this file was placed by a trusted person or Program, you can click Open to view the file."

There is a check box that says "Do not show this message again" but that only applies until the form is closed and reopened. I believe this is a trust issue, is there any way to turn it off on my kiosks or to make a javascript that will be universally allowed on my kiosks? I have a silent save javascript that circumvents the trust issue on my kiosks and I'm looking for something similar to that.

Any help would be greatly appreciated.

Thanks

This topic has been closed for replies.
Correct answer try67

No I'm not running and scripts for this. Its just a button that executes a a menu item which is to open a video file, which I then get the following prompt


I couldn't find a way to do it with an external file... However, it is possible if you attach the video file to the PDF itself.

If you do that then you can use a script to launch it. The first time you'll be prompted with a similar window but if then click to open the file and always allow for this file-type it should not appear again (it didn't for me).

The code to use is simply this (use the actual file-name in your case, of course):

this.exportDataObject({cName: "my video.mp4", nLaunch:2});

1 reply

March 17, 2017

Bump

try67
Community Expert
Community Expert
March 17, 2017

Are you launching the file using a script? If so, what code are you using?

March 17, 2017

No I'm not running and scripts for this. Its just a button that executes a a menu item which is to open a video file, which I then get the following prompt