Enterprise Tookit for Acrobat Products > Mobile > (Android | iOS)

JavaScript for Acrobat Reader Mobile API Reference (iOS)

HOME | Doc Class

The Doc object provides the interface between a PDF document open in the viewer and the JavaScript interpreter. It provides methods and properties for accessing the PDF document.

Item Index

Properties

Methods

getField

(
  • cName
)
Object

Defined in Doc.js:82

Maps a Field object in the PDF document to a JavaScript variable.

Parameters:

  • cName String

    The name of the field of interest.

Returns:

Object:

A Field object representing a form field in the PDF document.

resetForm

(
  • [fieldNames=null]
)

Defined in Doc.js:102

Resets the field values within a document. Resetting a field causes it to take on its default value (which, in the case of text fields, is usually blank).

Parameters:

  • [fieldNames=null] Object optional

    An array specifying the fields to reset. If not present or null, all fields in the form are reset.

submitForm

(
  • cURL
  • [cSubmitAs='FDF']
  • [cCharset='utf-8']
)
private

Defined in Doc.js:115

Submits the form to a specified URL. Currently only supports FormsCentral submissions.

submitForm JS API currently only supports FormsCentral submissions. And FormsCentral has now been decommissioned. Leave the submitForm code intact so that if it is executed, the return response can be processed by the application. Leave the submitForm code intact so that it can serve as a guide for any future non-FormsCentral submit functionality. But mark the API as private so that any autogenerated documentation does NOT include this API.

Parameters:

  • cURL String

    The URL to submit to. cURL must be a FormsCentral target.

  • [cSubmitAs='FDF'] String optional

    This parameter indicates the format for submission. Must be 'HTML' to support FormsCentral submission.

  • [cCharset='utf-8'] String optional

    The encoding for the values submitted. Must be 'utf-8' to support FormsCentral submission.

Properties

numFields

Number

Defined in Doc.js:27

The total number of fields in the document.

pageNum

Number

Defined in Doc.js:42

Gets or sets the current page of the document. When setting pageNum to a specific page, remember that the values are 0-based.


© 2013-15 Adobe Systems, Inc. All rights reserved. Use of these APIs including, the download of software, submission of comments, ideas, feature requests and techniques, and Adobe's rights to use such submitted materials, is governed by the Adobe.com Terms of Use and the Adobe Privacy Policy.