Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Saving Fillable Form as non-fillable PDF

Not applicable
I need some help with LiveCycle.



I've created a form that will be sent to several people to fill out. Once they fill it out, they will need to save the form as a non-fillable file (normal PDF?) and send on to others to be read-only. The form will not come back to me.



I cannot figure out how to enable the form to be saved as a normal, non-changeable PDF.



Also, the only option seems to be that the form is returned to me. I don't want that, either.



Thank you!

Tricia
1 Reply
Niall_O_Donovan
Level 10
Level 10

Hi,

What Radzmar is saying is that Paul's solution is available on this thread. Have a look here: Re: Saving Fillable Form as non-fillable PDF. Also on page 5 there are many discussions on how to get the script object and function to work.

Paul's solution does work, but as you say you can also try other routes.

Good luck,

Niall

sjones987
Level 1
Level 1

Niall, I will certainly give it a try, as I really need a solution like what Paul as created. I am quite uncertain how to even start as I am quite the n00b at PDF documents still...

fishbob1955
Level 1
Level 1

This is a long string but full of information.  I would like to request a copy of the script also

.  I believe this might solve my issue(s)

Thank you for your expertise and willingness to share it.

jeanette614
Level 4
Level 4

Could you please just write the script here so those of us who need it could just type it in our button. I have the same need but rather than email everyone who wants it, it would be easier to just copy and paste it right here. Please?

wCork32
Level 1
Level 1

There is an example form on post 143 and a script example on post 177.

I'm having issues with my adobe at the moment and cannot open the forms.

jeanette614
Level 4
Level 4

I can't even get to the forums to check for replies. Hopefully tomorrow will be a better day. Thanks.

HKSevo8
Level 2
Level 2

Okay having a bit of trouble with another form that I am working on.

So with this new form, I click my "save locked" button which I have a script at the end that saves my form, after it locks all of the fields.  Well what happens is my form tries to save, then lock the fields.  So the ending product is an unlocked form, which is a problem.

Also, I tried making a lock only button which after the fields are locked, a save-as button pops up.  Well the lock button works, then the save-as button pops up and then after I click save, it looks like the buttons work.  But when I re-open the form, it is all unlocked.

Anybody have any ideas?  Im clueless as to what is going wrong! 

Thanks in advanced!!!

HKSevo8
Level 2
Level 2

^^^Scratch that

Like usual I figured it out myself haha.

I overlooked a setting in the form properties.  Under the defaults, i had the scripting set to manual versus automatic.  I knew it was an easy fix!!!

blatham2222
Level 1
Level 1

Could you please send me the script for locking fields?

Send to: blatham@remax.net

Thank you in advance, this is awesome!

sjones987
Level 1
Level 1

Could I get it as well please?

sjones@thepremierteam.net

Thank you!

msfuzzibear
Level 1
Level 1

Paul you must be the man of the moment. That script will help me as well 😃

msfuzzibear@hotmail.com if  you have a spare moment 😃

Many thanks

sjones987
Level 1
Level 1

Also I never received it from my last request. If you could be so kind as to send me a copy as well I will be forever grateful. This will help me out immensely.

Thank you!

sjones@thepremierteam.net

westlakejager
Level 3
Level 3

You can also just print the form to PDF.

kingphysh
Level 7
Level 7

Hi,

I haven't had success printing my forms to PDF (with Acrobat). If you have put an Editing password on it, they won't print to PDF (because it is now "Secured"). That's my experience anyway. That's even if you allow printing in the Security section of the document properties. If there is a way, I'd sure like to know it.

Stephen

SI_MSD7
Level 6
Level 6

Another very simple (less advance) approach would be to make the ENTIRE form protected, readOnly, nonInteractive, etc. by using the following script:

xfa.form.form1.access = "protected";


In my situation (if this helps anyone), all I wanted to do was enable my user to click an email button to auto-attach a copy of his/her form to an outgoing email, BUT prior to sending the email, I wanted the form to be flattened (i.e. protected). After the email was sent, I wanted it return back to it's open state. So what I did was create a custom email submit button, and added very simple scripts for the preSubmit and postSubmit events. NOTE: This assumes your user is using an email client which will auto-generate an outgoing email (vs. using an Internet email service like GMAIL). If you're using an interent email service, the follwoing scripts will work.

1. Email button: This custom email button script allows me to set the subject, body message, to/cc fields, etc. and email the entire form (wth proper Rights) to a given recipient(s).

Placed on a standard button's click event:


var choice = xfa.host.messageBox("Press OK to submit this form using your default email client (e.g. Microsoft Outlook, Outlook Express, Eudora, Mail, etc.). Note: A copy of this form will be automatically attached to your email. \n\nPress Cancel if you currently use an Internet email service such as Gmail, Hotmail, or Yahoo to send email. You will need save this form on your computer and then manually attach it to an outgoing email (using your Internet email service) addressed to: sample@email.com", " ", 3, 1);

// Note: the above text was taken directly from the typical email submit button text. This gives you a way to modify the text if you want.

if (choice == 1){

var mail;

var address = "email@email.com";

var ccadd = ccAdd.rawValue; //taken from a field placed on the form

var sub = "Subject goes here";

var body = "See attatched file.";

mail = "mailto: " + address + "?cc=" + ccadd + "&subject=" + sub + "&body=" + body;

event.target.submitForm({

cURL: mail,

bEmpty: true,

cSubmitAs: "PDF",

cCharset: "utf-8"

});

}

else{

ProcessManager.terminateAction();

}

2. Script added to same email button (created above) to "Protect" ALL form fields PRIOR to the form being emailed. Place on preSubmit event:

xfa.form.form1.access = "protected";

3. Script added to same email button (created above) to "reopen" ALL form fields AFTER it the form has been submitted. Place on postSubmit event:

xfa.form.form1.access = "open";

From there, the user can save/SaveAs the original file (currently opened on-screen, with active fields), knowing that he's sent a protected copy. Please note that you've sent a "form" with protect fields...it's still a form, vs a truly "flattened copy".  So if security is a major concern, you'd probably want to use a different approach: for example, a digital signature to track from integrity, or print to PDF. Also, this assumes you;re not concerned with tracking "mandatory fields" etc.

As an alternate Step 3, you could interject a SaveAs script on the postSubmit event [ app.execMenuItem("SaveAs") ] to allow your user to save a copy of the protected file somewhere on his/her computer after emailing it. Then he/she could simply cancel the current form (on-screen) - without saving it. This assumes you are not concerned with saving an "open field" version with completed data.

Hopes this helps someone!

S


hanlac
Level 1
Level 1

Hi SI_MSD7 - Before I say anything, let me tell you that I dub my self as technologically challenged and barely understand half of IT speak so please bear with me...

What you posted is exactly what I need to do (if I understood the jargon correctly ). Allow me to explain what I need to happen just in case i misunderstood wha you posted... I have an already existing fillable form that needs to be sent via email filled out with details we require. The same form also needs to have an option to be saved and locked down (no editing or filling in allowed) under a different filename without compromising or changing the details of the pre-existing fillable form.  They should also have the option to send it via their email opened in a browser (i.e. hotmail or gmail) or via an email client (i.e. thunderbird) to different email addresses. Now, I have acrobat x pro but my employees don't. They would only have the free version reader. Is this possible with the script you posted above? If so, (and here is where you have to excuse my IT dumbness ) how do I go about adding the script you mentioned?

My knowledge about PDFs is only limited converting docs to PDF and maybe an idea of how to create a fillable form but that's about it. I'm a noob when it comes to acrobat. I would appreciate any assistance you could offer. You can email me at hannahlacsonAThotmailDOTcom.

Thank you in advance for your help!!!

SI_MSD7
Level 6
Level 6

Hi hanlac,

First off, don't worry about your level of skill re: coding. I'm no programmer, myself, and that's what forums like these are for - given the fact that you are "somewhat" familiar with the form creation process and basic scripting (i.e. knowing where to place the script, etc.).

In either case, my first question is to ask what program was the form created in - Acrobat (aka an AcroForm) or LiveCycle Designer (LCD)? If you are unsure, open the file in Acrobat and select the Forms menu item.  If the second option in the drop-down list says "Add or Edits Fields..." then the form is an AcroForm; if it says "edit in Designer..." then the form was originally created in LC Designer and you'll need to have that installed to be able to make any edits.

Quite honestly, if you don't have LCD already installed (which by the way comes packaged with Acrobat Pro) and the form was in fact designed in LCD, then I'm not sure what the item in the Form list will say.

In order to get started, you’ll need to know this piece of info as it will impact the type of scripting needed. There are variations between Acrobat javaScript and LCD javaScript.

I'll take this offline and follow-up by sending you an email at the address you specified.


hanlac
Level 1
Level 1

Hi SI_MSD7 - Thanks for responding! I am very grateful to people like you who share your expertise in forums like this to help thousands of strangers around the world (I'm from the Philippines ).

On the forms menu it gives me the option to "Edit." The original form I have to work with already came with fillable fields and I just need to edit it and have it do what I mentioned. Quite frankly, I'm not sure where this was created.

Thanks,

H