How do I create a link/button to open non-PDF file attachments?

New Here ,
Feb 09, 2018 Feb 09, 2018

Copy link to clipboard

Copied

I have a PDF with file attachments of several different file types. The attachments need to open from a button or link click. This is easily done with attached PDFs, but I also need to open XLS, DOCX, and PPT files. There is not an obvious way to make a button or link do this. Is there a JavaScript action that could achieve what I want?

TOPICS
Acrobat SDK and JavaScript, Macintosh, Windows

Views

689

Likes

Translate

Translate

Report

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

Most Valuable Participant , Feb 09, 2018 Feb 09, 2018
You can do it using this code:this.exportDataObject({cName: "My File.docx", nLaunch: 2});The first parameter is the name of the attached file that you want to open, of course.

Likes

Translate

Translate
Most Valuable Participant ,
Feb 09, 2018 Feb 09, 2018

Copy link to clipboard

Copied

You can do it using this code:

this.exportDataObject({cName: "My File.docx", nLaunch: 2});

The first parameter is the name of the attached file that you want to open, of course.

Likes

Translate

Translate

Report

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
New Here ,
Sep 30, 2020 Sep 30, 2020

Copy link to clipboard

Copied

Please
This command does not work on Android systems
؟؟؟؟ 😞

Likes

Translate

Translate

Report

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
Most Valuable Participant ,
Oct 01, 2020 Oct 01, 2020

Copy link to clipboard

Copied

LATEST

Correct. Almost no scripts do.

Likes

Translate

Translate

Report

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