Skip to main content
Inspiring
April 3, 2024
Question

Button to direct to file path where pdf will need to be saved

  • April 3, 2024
  • 2 replies
  • 847 views

I’m wondering if there’s a way I can add a script to a button so it always directs it to a certain file path where they will need to save the pdf. 

This topic has been closed for replies.

2 replies

Inspiring
April 4, 2024

Specifically, I need a 'Save' button which will direct the user to the file path where they need to save it.  Is there a simple option to achieve this, or will I need to apply a script to a button or something?

Inspiring
April 4, 2024

I also tried adding a button, selecting Action > Go to File.  It won't let me select a file path there either, only a file.

Thom Parker
Community Expert
April 4, 2024

Unfortunately creating an initial file path for the SaveAs dialog is not an option in Acrobat.  

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Thom Parker
Community Expert
April 3, 2024

No, 

You can read about saving a PDF from a script here:

https://www.pdfscripting.com/public/How-to-Save-a-PDF-2.cfm

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Inspiring
April 4, 2024

Thanks, I'm not even really sure that's what I need.  I would have thought it would be as simple as adding a link (Add Document Link), but it won't let me select a file path, only an actual file.  I was hoping it would be similar to when I add a hyperlink in outlook, select the address of the file path and add the text to display.  What's my best option to create a link to a file path in a PDF?