Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Launching a file from a PDF

Guest
Mar 16, 2017 Mar 16, 2017

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

TOPICS
Acrobat SDK and JavaScript , Windows
983
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 17, 2017 Mar 17, 2017

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});

Translate
Guest
Mar 17, 2017 Mar 17, 2017

Bump

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 17, 2017 Mar 17, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 17, 2017 Mar 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

Security Prompt.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 17, 2017 Mar 17, 2017

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});

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 18, 2017 Mar 18, 2017
LATEST

That worked like a charm, thank you very much. This is the second time you have helped me out on my kiosk system!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines