ViewONE JavaScript API Manual
Contents
Specifying an Annotations File
Viewing
Toolbars and Buttons
Timeout/User Idle Control
Introduction
Applet user interface
ViewONE Standard
Installing ViewONE
ViewONE Pro
Mayscript parameter
Apple Macintosh users JavaScript
Apple Macintosh users Html
Using ViewONE Standard on IE for Apple Macintosh
Setting up Windows 2003 server
Page
Page
ViewONE JavaScript Overview
JavaScript Reference
Method isReady
General Applet Control
Method getVersion
ViewONE.closeDocument Closes an open document
Opening documents and images
OpenFilefilename,
CloseDocument
Page
Method Group
Method openListlistFile,
MethodgetNumPages
ReloadList
OpenDocindex
NextDoc PrevDoc FirstDoc LastDoc GetDocIndex GetNumDocs
Method previousPage
MethodsetPagepage
Method getPage
Method nextPage
Method getCacheFile
MethodgetDocReference
MethodsetAnnotationFilefilename
Specifying an Annotations File
MethodsaveSelectedfilename
Saving documents and images
Savefilename
SavePagefilename
MethodisMultipageTif
Document hyperlinks
SetHyperlinkurl, dblClick
ClearHyperlink
Method Pro-Only
Method Pro-Only
Method
Cold Viewing Options Pro-Only
SetBackgroundImagefilename, pageNumber
IsBackgroundImageEnabled
SetBackgroundImageEnabledtrue/false
SetIndexListFileURL
Document Indexes Pro-Only
IsInverted
Image
Invert
SetInvertedtrue/false
SetRotationangle
IsEnhancetrue/false
SetEnhanceModemode
GetEnhanceMode
Method getRotation
Method initializeRotationArrayint size
Method setRotationArrayint angle, int
Method applyRotationArray
SetFlipmode
MethodrotateClockwise
Method rotateCounterclockwise
Rotate180
GetStates
GetFlip
SetScalescale
GetScale
Method zoom100
ViewONE.zoom100 Zooms image to 100% full resolution
Method setStatesstring states
Method zoomOut
SetXYScrollx, y
Method setZoomzoom
Method setZoomAndXYScrollzoom, x, y
Method zoomAreax, y, width, height, highlight, seconds
Method setBrightnesspercent
Method setDraggingEnabledtrue/false
Method isDraggingEnabled
Method resetBrightness
Method getContrast
Method resetContrast
Method getBrightness
Method setContrastpercent
Method getImageWidth
Method resetLuminance
Method setLuminancepercent
Method getLuminance
Method getXResolution
Method getYResolution
GetImageHeight
Viewing
SetViewview
GetView
Method setMagnifiertrue/false
SetAreaZoomtrue/false
IsAreaZoom
ToggleAreaZoom
Method setMagnifierInternaltrue/false
Method getMagFactor
IsMagnifier
ToggleMagnifier
SetMagFactor
IsNewWindowVisible
SetImageForeColorcolor
ShowImageForeColorDialog
ShowImageBackColorDialog
SetImageBackColorcolor
Labels
Method copyPageToClipboard
Selection and clipboard
Method selectPageint pageNumber
Method clearSelections
PrintRange
Printing
PrintPage
PrintDocument
SetPrintDialogtrue/false
PrintSelected
PrintVisible
PrintTransformed
Method isPrintDialog
Method setPrintCopiesinteger
Method setPrinterstring
Or some other informational text
Method setPrintHeaderheaderString
Method setPrintAutoRotate true/false
SetStatusBartrue/false
Toolbars and Buttons
Method setScrollbarstrue/false
IsScrollbars
Method isFileButtons
Method setFileButtonstrue/false
Method setImageButtonstrue/false
IsImageButtons
SetPrintButtonstrue/false
Method setNewWindowButtonstrue/false
Method isPrintButtons
SetInvertButtonstrue/false
IsInvertButtons
Method setAllButtonstrue/false
IsNewWindowButtons
SetViewButtonstrue/false
Method isViewButtons
Method isAllButtons
MethodsetPageButtonstrue/false
Method isPageButtons
ToggleAdjustTool
SetAdjustToolVisibleOnOff
IsAdjustToolVisible
ViewONE.setFileMenustrue
Menus and keys
SetFileMenustrue/false
IsFileMenus
SetViewMenustrue/false
IsViewMenus
ViewONE.setViewMenustrue
SetImageMenustrue/false
IsImageMenus
ViewONE.setImageMenustrue
SetPrintMenustrue/false
IsPrintMenus
ViewONE.setPrintMenustrue
SetPageMenustrue/false
IsPageMenus
ViewONE.setPageMenustrue
SetSelectMenustrue/false
IsSelectMenus
ViewONE.setSelectMenustrue
SetPreferenceMenustrue/false
IsPreferenceMenus
ViewONE.setPreferenceMenustrue
IsFileKeys
SetAllMenustrue/false
IsAllMenus
SetFileKeystrue/false
IsImageKeys
SetImageKeystrue/false
SetPrintKeystrue/false
IsPrintKeys
SetViewKeystrue/false
SetSelectKeystrue/false
IsViewKeys
SetPageKeystrue/false
IsPageKeys
Method isSelectKeys
Method setAllKeystrue/false
Method isAllKeys
Method stopTimeout
Timeout/User Idle Control
Method setTimeoutseconds
Method getTimeout
Method getTimeLeft
Event Handler and Event Handling
Events handler change in ViewONE Version
DocN Html tag is used see Html manual End tab
Events ids and descriptions
Ready
First time the page is viewed
HSPACE=0 VSPACE=0
Event Handler example
MayScript tag
Testing your Event Handler