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