How can I make buttons for Clear, save, print, Print preview of a pdf fillable form
Copy link to clipboard
Copied
Hi, I have few questions that
1. I want to get print preview of a fillable form (without showing text boxes background i.e blue etc) and then print it ( please tell how to make print preview and print button)
example of form after entering data is like
2. I need to save the entered data as pdf readable file. when i click on the save button on the form
3. and the last one I need a clear form button to clear enteries on the form.
4. How can I use Tab control (as in the picture ) in pdf fillable form?
So please help me out in this matter, Thanks.
Copy link to clipboard
Copied
1. Not sure what you mean by a "print preview"... You can disable fields highlighting, I guess, or make the fields read-only, but I don't really see the point of that. You can open the Pring dialog with this code:
this.print();
2. You can open the Save As dialog with this code:
app.execMenuItem("SaveAs");
To silently save the file (or to print it) would require installing a script file with special code on the machine of each user.
3. There's a built-in command under the actions list of a button to do that, or you can use this code:
this.resetForm();
4. PDF files can't contain tabs. If you want to achieve something similar you will need to program it carefully using a combination of layers, multiple sets of fields, and scripts to show/hide them when the "tab" buttons are clicked. This is not a trivial task.
Copy link to clipboard
Copied
Thanks for your great help.
Sorry you couldnt get print preview, it is a feature that allows anyone to see exactly how pages will look when they are printed, So I want this in my pdf form, but dont know how to do this,
Copy link to clipboard
Copied
What exact command do you use in Acrobat to get that?
Copy link to clipboard
Copied
No again you didnt understand, I meant I want this print preview in my pdf form, because when I enter all information then before printing I need to check my information how it looks, This is what I want in PDF fillable form, hopeful this time you will get my lines, Thanks

