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
 OpenFilefilename,
Opening documents and images
CloseDocument
ViewONE.closeDocument Closes an open document
Page
 Method Group
 Method openListlistFile,
 OpenDocindex
ReloadList
NextDoc PrevDoc FirstDoc LastDoc GetDocIndex GetNumDocs
MethodgetNumPages
 Method getPage
MethodsetPagepage
Method nextPage
Method previousPage
 Method getCacheFile
MethodgetDocReference
 MethodsetAnnotationFilefilename
Specifying an Annotations File
 Savefilename
Saving documents and images
SavePagefilename
MethodsaveSelectedfilename
 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
 Invert
Image
SetInvertedtrue/false
IsInverted
 SetEnhanceModemode
IsEnhancetrue/false
GetEnhanceMode
SetRotationangle
 Method setRotationArrayint angle, int
Method initializeRotationArrayint size
Method applyRotationArray
Method getRotation
 Method rotateCounterclockwise
MethodrotateClockwise
Rotate180
SetFlipmode
 SetScalescale
GetFlip
GetScale
GetStates
 Method setStatesstring states
ViewONE.zoom100 Zooms image to 100% full resolution
Method zoomOut
Method zoom100
 Method setZoomAndXYScrollzoom, x, y
Method setZoomzoom
Method zoomAreax, y, width, height, highlight, seconds
SetXYScrollx, y
 Method isDraggingEnabled
Method setDraggingEnabledtrue/false
Method resetBrightness
Method setBrightnesspercent
 Method getBrightness
Method resetContrast
Method setContrastpercent
Method getContrast
 Method setLuminancepercent
Method resetLuminance
Method getLuminance
Method getImageWidth
 Method getXResolution
Method getYResolution
GetImageHeight
 Viewing
SetViewview
GetView
 IsAreaZoom
SetAreaZoomtrue/false
ToggleAreaZoom
Method setMagnifiertrue/false
 Method setMagnifierInternaltrue/false
 ToggleMagnifier
IsMagnifier
SetMagFactor
Method getMagFactor
 IsNewWindowVisible
SetImageForeColorcolor
ShowImageForeColorDialog
 ShowImageBackColorDialog
SetImageBackColorcolor
 Labels
 Method selectPageint pageNumber
Selection and clipboard
Method clearSelections
Method copyPageToClipboard
 PrintPage
Printing
PrintDocument
PrintRange
 PrintVisible
PrintSelected
PrintTransformed
SetPrintDialogtrue/false
 Method isPrintDialog
Method setPrintCopiesinteger
Method setPrinterstring
 Or some other informational text
Method setPrintHeaderheaderString
 Method setPrintAutoRotate true/false
 Method setScrollbarstrue/false
Toolbars and Buttons
IsScrollbars
SetStatusBartrue/false
 Method isFileButtons
Method setFileButtonstrue/false
 Method setImageButtonstrue/false
IsImageButtons
SetPrintButtonstrue/false
 SetInvertButtonstrue/false
Method isPrintButtons
IsInvertButtons
Method setNewWindowButtonstrue/false
 SetViewButtonstrue/false
IsNewWindowButtons
Method isViewButtons
Method setAllButtonstrue/false
 Method isAllButtons
MethodsetPageButtonstrue/false
Method isPageButtons
 ToggleAdjustTool
SetAdjustToolVisibleOnOff
IsAdjustToolVisible
 SetFileMenustrue/false
Menus and keys
IsFileMenus
ViewONE.setFileMenustrue
 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
 IsAllMenus
SetAllMenustrue/false
SetFileKeystrue/false
IsFileKeys
 IsImageKeys
SetImageKeystrue/false
 SetPrintKeystrue/false
IsPrintKeys
SetViewKeystrue/false
 SetPageKeystrue/false
IsViewKeys
IsPageKeys
SetSelectKeystrue/false
 Method isSelectKeys
Method setAllKeystrue/false
Method isAllKeys
 Method setTimeoutseconds
Timeout/User Idle Control
Method getTimeout
Method stopTimeout
 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