January 05, 2018

Supported Scripting in AcroForms (Adobe Acrobat forms)

HTTP replies for submit actions

PDF Expert presents HTTP replies with Content-Type "text/plain" and "text/html" to the user. For other content types the "Form successfully submitted." is shown.

Objects scriptable in PDF Expert

  • field
  • event
  • doc
  • app
  • util
  • console

field Object
Properties

  • borderColor
  • borderStyle
  • charLimit
  • currentValueIndices
  • defaultValue
  • display
  • fillColor
  • hidden
  • name
  • numItems
  • page
  • print
  • readonly
  • rect
  • required
  • strokeColor
  • textColor
  • textSize
  • type
  • userName
  • value
  • valueAsString

Methods

  • buttonGetCaption
  • buttonImportIcon, parameters are not supported
  • buttonSetCaption
  • checkThisBox
  • clearItems
  • defaultIsChecked
  • deleteItemAt, nIdx is requred
  • getArray
  • getItemAt
  • insertItemAt
  • isBoxChecked
  • setFocus
  • setItems

event Object
Properties

  • change
  • changeEx
  • name
  • rc
  • selStart
  • selEnd
  • source
  • target
  • targetName
  • type
  • value
  • willCommit

doc Object
Properties

  • calculate
  • numFields
  • numPages
  • pageNum
  • URL, can be used in combination with "pdfefile://" scheme to transfer data to a form.

Methods

  • calculateNow
  • deletePages
  • getField
  • getNthFieldName
  • gotoNamedDest
  • mailDoc
  • mailForm
  • submitForm, supported cSubmitAs values: FDF, XFDF, HTML, PDF.
  • resetForm

app Object
Properties

  • platform, returns "IOS"
  • viewerType, returns "PDF Expert for iPad"
  • viewerVersion, returns PDF Expert version appending ".0" to it. E.g. "3.2.1.0"

Methods

  • alert
  • launchURL
  • mailMsg
  • openDoc, Ignores all parameters except "cPath". cPath is a relative path according to the current document. Returns null.

util Object
Methods

  • printd
  • printf
  • printx
  • scand, Note that PDF Expert is more strict than Acrobat Pro to correspondence cDate to cFormat.

console Object
Methods

Was this article helpful?YesNo

Thanks for your feedback! 😊

Sorry about that! How can we make it better?

Thanks! Your message has been sent. Our support team will get in touch with you shortly!