Print Page | Close Window

Save pdf using field names

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=2153
Printed Date: 19 Oct 2019 at 7:57am
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Save pdf using field names
Posted By: Trainman
Subject: Save pdf using field names
Date Posted: 12 Apr 2017 at 6:02pm
I'm new to this forum and new to javaScript, so sorry if this question is simple.

I would like to save a form before it has been signed, as I believe once its been signed you can not edit the form.

The question is, how to save the form using two fields from within the form, as the pdf's name.

i.e. IAG.pdf to ThomasSmith.pdf (First Name and Surname)

Trainman


-------------
MB



Replies:
Posted By: Merlin
Date Posted: 12 Apr 2017 at 8:11pm
Hi.

This requires an application-level JavaScript, this could not be done from a PDF without an user prompt.


-------------
ENG : https://www.abracadabrapdf.net/utilities-in-english/welcome/ - abracadabraPDF.net
FRA : https://www.abracadabrapdf.net - abracadabraPDF.net


Posted By: Trainman
Date Posted: 13 Apr 2017 at 2:30pm
Merlin

Thank you for your reply, I take it you mean a user prompt, is that from say then user pressing a button to do this.

Trainman


-------------
MB


Posted By: gkaiseril
Date Posted: 19 Apr 2017 at 6:55pm
Not only do you need to provide a button, you also must install or have the user install a custom JavaScript file in a specific location on their system.

[URL=How to Save a PDF with Acrobat JavaScript][ https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript/URL%5d - https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript/URL] by Thom Parker. There are some changes after this article was written that require additional coding and


Posted By: Trainman
Date Posted: 19 Apr 2017 at 8:10pm
Thank you for this link, I will look at this and see if my knowledge is up to this.


-------------
MB



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net