Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 154536

remove button from pdf after saving

$
0
0

Hello, in my PDF form, I have a button. This button has the following script that I got via this forum, great!

 

for (var i=0; i<this.numFields; i++) { 

    var f = this.getField(this.getNthFieldName(i)); 

    if (f==null) continue; 

    f.readonly = true; 

 

app.execMenuItem("SaveAs")

 

So what it actually does, is to make all form fields "non editable"and show a save as button after that so users can save the filled in PDF.

 

But since after saving the PDF is read only, how can I make it in this way that the "button save as" with the script above, is not showing anymore in the generated PDF. This is a read only PDF now, so this button is no longer of use to show and also not to print.

How do I do this in acrobat pro.

 

Thank you all!


Viewing all articles
Browse latest Browse all 154536

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>