Skip to main content
Alizai
Participating Frequently
July 1, 2023
Frage

How can I make buttons for Clear, save, print, Print preview of a pdf fillable form

  • July 1, 2023
  • 1 Antwort
  • 1122 Ansichten

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.

Dieses Thema wurde für Antworten geschlossen.

1 Antwort

try67
Community Expert
Community Expert
July 1, 2023

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.

Alizai
AlizaiAutor
Participating Frequently
July 1, 2023

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, 

try67
Community Expert
Community Expert
July 1, 2023

What exact command do you use in Acrobat to get that?