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