Adobe LiveCycle Designer and PDF - Tips and Tricks
If you would like to adjust the zoom factor on an action or event with JavaScript in LiveCycle Designer you need to use a little "AcroScript" (Acrobat based JavaScript as apposed to XFA).
In this example we force the user to go to the next page and then we set a zoom factor of "Page Width".
xfa.host.pageDown();
var oDoc = event.target;
oDoc.zoomType = zoomtype.fitW;
For more detail on the "zoomtype" capabilities, take a look at the Adobe® Acrobat® JavaScript Scripting Guide.
The most common options are:
oDoc.zoomType = zoomtype.fitP; // FitPage
oDoc.zoomType = zoomtype.fitW; // FitWidth
oDoc.zoomType = zoomtype.fitH; // FitHeight
oDoc.zoomType = zoomtype.fitV; //FitVisible Width
| < Prev |
|---|
