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
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
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
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
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
GetImageHeight
Method getXResolution
Method getYResolution
GetView
Viewing
SetViewview
ToggleAreaZoom
SetAreaZoomtrue/false
IsAreaZoom
Method setMagnifiertrue/false
Method setMagnifierInternaltrue/false
SetMagFactor
IsMagnifier
ToggleMagnifier
Method getMagFactor
ShowImageForeColorDialog
IsNewWindowVisible
SetImageForeColorcolor
SetImageBackColorcolor
ShowImageBackColorDialog
Labels
Method clearSelections
Selection and clipboard
Method selectPageint pageNumber
Method copyPageToClipboard
PrintDocument
Printing
PrintPage
PrintRange
PrintTransformed
PrintSelected
PrintVisible
SetPrintDialogtrue/false
Method setPrinterstring
Method isPrintDialog
Method setPrintCopiesinteger
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
SetPrintButtonstrue/false
Method setImageButtonstrue/false
IsImageButtons
IsInvertButtons
Method isPrintButtons
SetInvertButtonstrue/false
Method setNewWindowButtonstrue/false
Method isViewButtons
IsNewWindowButtons
SetViewButtonstrue/false
Method setAllButtonstrue/false
Method isPageButtons
Method isAllButtons
MethodsetPageButtonstrue/false
IsAdjustToolVisible
ToggleAdjustTool
SetAdjustToolVisibleOnOff
IsFileMenus
Menus and keys
SetFileMenustrue/false
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
SetFileKeystrue/false
SetAllMenustrue/false
IsAllMenus
IsFileKeys
SetImageKeystrue/false
IsImageKeys
SetViewKeystrue/false
SetPrintKeystrue/false
IsPrintKeys
IsPageKeys
IsViewKeys
SetPageKeystrue/false
SetSelectKeystrue/false
Method isAllKeys
Method isSelectKeys
Method setAllKeystrue/false
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