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. I have done it with Word using the JavaScript action but I am having no luck with a .pptx PowerPoint Document. Can any one help in providing instructions which would work for me? Am I missing something?
thanks
Copy link to clipboard
Copied
What code did you use? What happens when you use it on a .pptx file?
Copy link to clipboard
Copied
I did “Add Button” Select the “Actions” tab /“Mouse Up” action (2), select to run a JavaScript (3) and click on the “Add” button (4). This will bring up the JavaScript editor- script used- Doc.exportDataObject() method. -exportDataObject({ cName: "attachment.docx", nLaunch: 2 }); and Ok
-nothing seems to launch after it was attempted.
Copy link to clipboard
Copied
Open the JS Console (Ctrl+J) and check if there are any error messages in it.
Copy link to clipboard
Copied
Oh my Gosh when I copied and reposted the script it worked this time!!!! Thanks for persevering with me. I was ready to quit.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now