In PDF Studio Viewer JavaScript can perform calculations, button actions (adding images, submitting forms, or populating other fields), validate field input, and set field formatting, among many other things.
Note: PDF Studio Viewer only supports Acroform (non-LiveCycle) JavaScript in PDF forms.
PDF Studio Viewer supports the following JavaScript commands for each of the below items.
author
page
points
strokeColor
type
width
addAnnot
addField
calculateNow
closeDoc
flattenPages
getAnnots3D
getDataObjectContents
getField
getNthFieldName
getOCGs
getPageBox
getPageRotation
getTemplate
gotoNamedDest
importAnFDF
mailDoc
resetForm
spawnPageFromTemplate
submitForm
URL
calculate
info
numFields
numPages
buttonGetCaption
buttonImportIcon
buttonSetCaption
checkThisBox
clearItems
deleteItemAt
getArray
getItemAt
insertItemAt
isBoxChecked
setAction
setFocus
setItems
signatureInfo
borderColor
borderStyle
borderWidth
calcOrderIndex
charLimit
comb
commitOnSelChange
currentValueIndices
defaultValue
delay
display
doNotScroll
doNotSpellCheck
doc
editable
exportValues
fileSelect
fillColor
hidden
lineWidth
multiline
multipleSelection
name
numItems
page
password
readonly
rect
required
strokeColor
style
submitName
textColor
type
userName
value
valueAsString
setPersistent
corporation
loginName
name
fromRotated
transform
bEnabled
bMarked
cName
cReturn
oSubMenu
getIntent
setAction
setIntent
initState
locked
name
state
read
date
reason
spawn
printd
printf
printx
scand
stringFromStream
Copyright © 2002-Present Qoppa Software. All rights reserved.