Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Classic 'Flatten PDF' question

$
0
0

So I have created a fairly complex fillable form in Acrobat Pro (10.1.8)... I have saved it for use by other users in Adobe Reader. (File>Save As>Reader Extended PDF>Enable Additional Features...)

 

The users can open file in Adobe Reader just fine, all formulas work, all values display correctly, life is grand.

 

Now all I want is for the user to save a 'flattened' version of the pdf to their machine, either to print or email at a later date. If the user saves the document from Reader all fields can still be edited on next use. If I use a "lock all field" button like this:

 

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

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

    if (f!=null && f.type!="button")

        f.readonly = true;

}

 

 

When I open the saved, field locked document, I lose all the formatting in my fields. (ie. no $ symbols, or commas in numbers, etc. )

 

And of course, there is no "print to pdf" option when you try and go that route... which of course, would make life too easy, wouldn't it?

 

So. Does anyone have a solution for what I can only imagine is a fairly common problem? I've searched high and low to no avail.


Viewing all articles
Browse latest Browse all 12130

Trending Articles



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