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