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

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

Engaged ,
Apr 03, 2024 Apr 03, 2024

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. 

TOPICS
Create PDFs , JavaScript , PDF , PDF forms
666
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 ,
Apr 03, 2024 Apr 03, 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 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
Engaged ,
Apr 04, 2024 Apr 04, 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?

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
Engaged ,
Apr 04, 2024 Apr 04, 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?

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
Engaged ,
Apr 04, 2024 Apr 04, 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.

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 ,
Apr 04, 2024 Apr 04, 2024

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

 

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
Engaged ,
Apr 04, 2024 Apr 04, 2024
LATEST

That's a shame.  Good to know.  Thanks!

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