Adobe acrobat forms javascript object specification User Manual

Page of 64
Acrobat Forms - JavaScript Object Specification
24
zoomType
Type: String
Access: R/W
This property specifies the current zoom type of the document. Valid zoom types are: none, fit
page, fit width, fit height, 
and fit visible width. A convenience zoomType object that defines all
the valid zoom types is provided for use from JavaScript. It provides the following zoom types:
Example:
// This example sets the zoom type of the document to fit the width.
this.zoomType = zoomtype.fitW;
Doc Object Methods
calculateNow
Parameters: none
Returns: nothing
Use this function to force computation of all calculation fields in the current document.
exportAsFDF
Parameters: [bAllFields], [bNoPassword], [aFields], [bFlags]
Returns: nothing
Use this method to export an FDF file to the local hard drive. Upon invocation, a dialog will be
shown to let the user select the file to export to.
The optional bAllFields parameter indicates, if true, that all fields are exported, including those
that have no value, and if false (the default) to exclude those that currently have no value.
The optional bNoPassword parameter indicates, if true (the default), not to include in the
exported FDF text fields that have the “password” flag set.
Zoom Type
Keyword
NoVary
zoomtype.none
FitPage
zoomtype.fitP
FitWidth
zoomtype.fitW
FitHeight
zoomtype.fitH
FitVisibleWidth
zoomtype.fitV
Preferred
zoomtype.pref
4.0