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

Save PDF File with Form Button

Explorer ,
Jul 16, 2021 Jul 16, 2021

Hi Everyone...

 

As I continue developing my CEQA Form (attached), I am now attempting to have a button (visible/not printing) so that the file can be saved using the Case Number created on the form. I am honestly in the deepwater here...

 

I have read, re-read, and yet, re-read again Thom Parker's excellent article (https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript) on how to get this done....but I want to make sure I am getting it.

 

I have attached a file that I think is what I have to get done...

 

1. create a java file that sits on the server-side in a folder accessible by the network users.

2. reference that file in the PDF form (not sure how that works)

3. create a button script that acts on privileged features to save the file with the form-generated filename.

 

What am I missing?

 

Cheers!

TOPICS
JavaScript , PDF forms
2.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
1 ACCEPTED SOLUTION
Explorer ,
Jul 17, 2021 Jul 17, 2021

Thanks.

 

try67...

 

I cannot be sure that each local machine will allow the script to be installed and it would be easier to get an audience with the Pope than it would be to get Corporate IT to push it through as an update to all network devices.

 

As an alternative, I suppose I could pop an alter with instructions to use the Case Number as file name prior to calling a menu feature...

View solution in original post

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 ,
Jul 16, 2021 Jul 16, 2021

You must use a trusted function.

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 ,
Jul 17, 2021 Jul 17, 2021
quote

1. create a java file that sits on the server-side in a folder accessible by the network users.

By Robert Ooley

 

No, that's not how it works. The js file needs to be placed in one of two specific folders on the local machine of each user. Is that possible in your scenario?

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
Explorer ,
Jul 17, 2021 Jul 17, 2021

Thanks.

 

try67...

 

I cannot be sure that each local machine will allow the script to be installed and it would be easier to get an audience with the Pope than it would be to get Corporate IT to push it through as an update to all network devices.

 

As an alternative, I suppose I could pop an alter with instructions to use the Case Number as file name prior to calling a menu feature...

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 ,
Jul 17, 2021 Jul 17, 2021

Sure, you can do that. You can even display for them the file-name they should use, so they could copy and paste it into the Save As dialog, but you can't enforce 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
Explorer ,
Jul 17, 2021 Jul 17, 2021

Thanks, try67...

 

I appreciate your time to think about my issue. The solution I think will be a combination of policy and programming.

 

Enjoy your weekend!

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
LEGEND ,
Jul 17, 2021 Jul 17, 2021

I think you're trying to do it in a particular way and twist the instructions to fit. No, you have to do things in the very particular way that Adobe designed. Yes, it is a nuisance.

"1. create a java file" that's JavaScript. If you mix the two up you will get a lot of confusing info.

"that sits on the server-side in a folder accessible by the network users." no, it sits in each user's personal Acrobat start up dir.

"2. reference that file in the PDF form (not sure how that works)" What you describe can't be done. But the startup file can make a trusted function.

"3. create a button script that acts on privileged features to save the file with the form-generated filename." 

Really, it seems you actually need a submit button and a server script (written by a professional specialist). But you can refer to the trusted function in a button if you really want.

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
Explorer ,
Jul 17, 2021 Jul 17, 2021
LATEST

Thanks, TestScreenName. I appreciate your thinking about my file saveas issue.

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