
Acrobat Forms - JavaScript Object Specification
26
getNthTemplate
Parameters: nWhich
Returns: cName
Use this function to retrieve the name of a template within in the document. (See also the
numTemplates
property and
spawnPageFromTemplate
method.)
getURL
Parameters: cURL, [bAppend]
Returns: nothing
This method retrieves the specified URL over the internet using a GET. If the current
document is being viewed inside the browser or Acrobat Web Capture is not available, it uses
the Weblink plug-in to retrieve the requested URL. If bAppend is true (the default) and Acrobat
Web Capture is available, the resulting pages are appended to the current document.
gotoNamedDest
Parameters: cName
Returns: nothing
Use this method to go to a named destination within the PDF document. For more details on
named destinations and how to create them, see the
PDF Reference Manual Version 1.3
importAnFDF
Parameters: [cFile]
Returns: nothing
This method imports the specified FDF file. The cFile parameter specifies the device-
independent pathname to the FDF file. See Section 7.4 of the PDF Reference Manual for a
description of the device-independent pathname format (it should look like the value of the /F
key in an FDF exported via the
exportAsFDF
method or via the “File->Export->Form Data”
menu item). The pathname may be relative to the location of the current document. If the
parameter is omitted a dialog will be shown to let the user select the file. This method does not
work in the Acrobat Reader.
mailDoc
Parameters: bUI, cTo, [cCc], [cBcc], [cSubject], [cMsgBody]
Returns: nothing
This method saves the current PDF document and mails it as an attachment to all recipients
with or without user interaction depending on the value of bUI. If it is set to true then the rest
4.0
4.0
4.0