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