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

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

Engaged ,
Apr 03, 2024 Apr 03, 2024

Copy link to clipboard

Copied

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

Views

317

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
Community Expert ,
Apr 03, 2024 Apr 03, 2024

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

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?

Votes

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

Copy link to clipboard

Copied

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?

Votes

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

Copy link to clipboard

Copied

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.

Votes

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

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

LATEST

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

Votes

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