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