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

Saving a pdf file using the value of a module field

New Here ,
Nov 24, 2017 Nov 24, 2017

Hi all,

instead of the generic "Saves as" command available in the toolbar, can I add a customization or a command (I don't know, maybe a button) to a pdf module in order to save the pdf file using the value entered in a field? For instance: I have the text field "CODE" and I enter the value "1234", I would like that the save as command suggests me the file name "1234.pdf" as a default, the user can change the suggested file name if he wants.

Is it possible?

Thank you very much.

Paolo

TOPICS
PDF forms
1.5K
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 ,
Nov 24, 2017 Nov 24, 2017

No. You can either save the file automatically using that name (if a script is installed on the local computer), or you can suggest the desired file-name in a dialog that appears before the Save As dialog, but not within it.

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
New Here ,
Nov 24, 2017 Nov 24, 2017

<You can either save the file automatically using that name (if a script is installed on the local computer)>

What do you mean with "automatically"? Is it possible to get the name of the file from a field (or maybe more fields) of the module? Can you provide a sample script?

Thanks

Paolo

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 ,
Nov 24, 2017 Nov 24, 2017
LATEST

Automatically: Without user interaction beyond clicking the button. And yes, it can use the value of a field as the new file-name.

See this tutorial: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

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