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

I want set up buttoms when clicked on will open files attached to the pdf in the attachment pane

Community Beginner ,
Aug 06, 2025 Aug 06, 2025

I have a multipage document, on each page is a button set up so people can click on it and open corresponding files i have attached and show up hidden in the attachments area.

TOPICS
Edit and convert PDFs , General troubleshooting , Modern Acrobat , PDF , PDF forms , Rich media and 3D
84
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 ,
Aug 06, 2025 Aug 06, 2025

Please provide a screenshot.  What do you mean by you've attached files and they do not show in the attachments tab?

Attachments are opened with the "doc.exportDataObject()" function.

Here's the reference entry:

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/doc.html#exportdataobject

 

Opening attachments is a privileged operation, so it can't be done from a document button script alone. 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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 ,
Aug 06, 2025 Aug 06, 2025
LATEST

Is the other file a PDF? If so, you can easily set it up. Select as the action of the button the "Go to a page" command, then when the floating window with the "Set Link" button appears, open the attached file and browse to the desired location in that file, and then click that button, and you're done!

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