• Home
  • Products
    • PDF Expert
    • Spark
    • Scanner Pro
    • Calendars
    • Printer Pro
    • Documents
    • PDF Converter
    • Fluix
  • Blog
  • More
    • About
    • Press
    • Support
  • Careers
  • FLUIX
Home   →   9. For Developers   →   9.1. Supported Scripting in AcroForms (Adobe Acrobat forms)
  • Calendars for Mac
  • PDF Expert
  • Calendars
  • Documents
  • PDF Converter
  • Printer Pro
  • Scanner Mini
  • Scanner Pro

9.1. Supported Scripting in AcroForms (Adobe Acrobat forms)

1. 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. 

2. 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

  • println, prints to device console. The device console can be viewed with iPhone Configuration Utility. See http://red-glasses.com/index.php/support-2/getting-a-console-log/


This page was: Helpful | Not Helpful
←Previous Next→

Company

  • Blog
  • About
  • Press
  • Support
  • Privacy Policy

Products

  • PDF Expert
  • Spark
  • Scanner Pro
  • Calendars
  • Printer Pro
  • PDF Converter
  • Documents

Knowledge base

  • PDF Expert 7
  • Calendars 5
  • Documents
  • PDF Converter
  • PDF Expert 6
  • PDF Expert for Mac
  • Printer Pro
  • Scanner Mini
  • Scanner Pro
  • Readdle Early Access

© 2007 - 2025 Readdle Inc.
Apple, the Apple logo, MacBook Air, MacBook Pro, and iMac are trademarks of Apple Inc., registered in the U.S. and other countries. Mac App Store is a service mark of Apple Inc.