JAVA Tech VERSION 3.0 manual Method Pro-Only

Page 31

Method: (Pro-Only)

Method: (Pro-Only)

Method: (Pro-Only)

Method: (Pro-Only)

getPDFResolution()

E.g. var depth = ViewONE.getPDFResolution();

Returns the current resolution used when viewing PDF documents.

setAutoLimitPDFResolution(true/false)

E.g. ViewONE.setAutoLimitPDFResolution(true);

When the parameter is set to true, ViewONE will dynamically limit the PDF resolution in order to obtain maximum performance when viewing PDF documents.

ViewONE will attempt to use the default PDF resolution (see above) but if that resolution is likely to result in slow performance, ViewONE will reduce the resolution on a per document and page basis depending on the setAutoLimitPDFMemoryValue() method described below.

isAutoLimitPDFResolution()

E.g. var limited = ViewONE.isAutoLimitPDFResolution();

Returns true to indicate limiting is switch on and false if not.

setAutoLimitPDFMemoryValue(value)

E.g. ViewONE.setAutoLimitPDFMemoryValue(10000000);

This methods controls the way ViewONE limits resolution when using the limiter described above.

The parameter dictates the maximum amount of memory that is permitted for a decompressed PDF page. If a page exceeds this amount (e.g. when using high default PDF resolutions) then ViewONE will use a resolution for that page that brings it under this memory limit. The actual resolution used will depend on the page dimensions and color depth. To discover the limited resolution a page must first be viewed, then you can display the Image Information dialog (see Image Information button).

The default value for this parameter is 5Mb (5 * 1024 * 1024 = 5242880 bytes).

If you find the limited resolution is resulting in degraded viewing quality, but you also wish to keep using the auto limiter, then try increasing the default value using this paramater.

31

Image 31
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 ViewONEMayscript parameter ViewONE ProApple Macintosh users JavaScript Apple Macintosh users Html Using ViewONE Standard on IE for Apple MacintoshSetting up Windows 2003 server Page Page ViewONE JavaScript Overview JavaScript Reference Method isReady General Applet ControlMethod getVersion ViewONE.closeDocument Closes an open document Opening documents and imagesOpenFilefilename, CloseDocumentPage Method Group Method openListlistFile, MethodgetNumPages ReloadListOpenDocindex NextDoc PrevDoc FirstDoc LastDoc GetDocIndex GetNumDocsMethod previousPage MethodsetPagepageMethod getPage Method nextPageMethod getCacheFile MethodgetDocReferenceMethodsetAnnotationFilefilename Specifying an Annotations FileMethodsaveSelectedfilename Saving documents and imagesSavefilename SavePagefilenameMethodisMultipageTif SetHyperlinkurl, dblClick Document hyperlinksClearHyperlink Method Pro-Only Method Pro-Only Method Cold Viewing Options Pro-Only SetBackgroundImagefilename, pageNumber IsBackgroundImageEnabled SetBackgroundImageEnabledtrue/falseSetIndexListFileURL Document Indexes Pro-OnlyIsInverted ImageInvert SetInvertedtrue/falseSetRotationangle IsEnhancetrue/falseSetEnhanceModemode GetEnhanceModeMethod getRotation Method initializeRotationArrayint sizeMethod setRotationArrayint angle, int Method applyRotationArraySetFlipmode MethodrotateClockwiseMethod rotateCounterclockwise Rotate180GetStates GetFlipSetScalescale GetScaleMethod zoom100 ViewONE.zoom100 Zooms image to 100% full resolutionMethod setStatesstring states Method zoomOutSetXYScrollx, y Method setZoomzoomMethod setZoomAndXYScrollzoom, x, y Method zoomAreax, y, width, height, highlight, secondsMethod setBrightnesspercent Method setDraggingEnabledtrue/falseMethod isDraggingEnabled Method resetBrightnessMethod getContrast Method resetContrastMethod getBrightness Method setContrastpercentMethod getImageWidth Method resetLuminanceMethod setLuminancepercent Method getLuminanceMethod getYResolution Method getXResolutionGetImageHeight SetViewview ViewingGetView Method setMagnifiertrue/false SetAreaZoomtrue/falseIsAreaZoom ToggleAreaZoomMethod setMagnifierInternaltrue/false Method getMagFactor IsMagnifierToggleMagnifier SetMagFactorSetImageForeColorcolor IsNewWindowVisibleShowImageForeColorDialog ShowImageBackColorDialog SetImageBackColorcolorLabels Method copyPageToClipboard Selection and clipboardMethod selectPageint pageNumber Method clearSelectionsPrintRange PrintingPrintPage PrintDocumentSetPrintDialogtrue/false PrintSelectedPrintVisible PrintTransformedMethod setPrintCopiesinteger Method isPrintDialogMethod setPrinterstring Or some other informational text Method setPrintHeaderheaderStringMethod setPrintAutoRotate true/false SetStatusBartrue/false Toolbars and ButtonsMethod setScrollbarstrue/false IsScrollbarsMethod isFileButtons Method setFileButtonstrue/falseIsImageButtons Method setImageButtonstrue/falseSetPrintButtonstrue/false Method setNewWindowButtonstrue/false Method isPrintButtonsSetInvertButtonstrue/false IsInvertButtonsMethod setAllButtonstrue/false IsNewWindowButtonsSetViewButtonstrue/false Method isViewButtonsMethodsetPageButtonstrue/false Method isAllButtonsMethod isPageButtons SetAdjustToolVisibleOnOff ToggleAdjustToolIsAdjustToolVisible ViewONE.setFileMenustrue Menus and keysSetFileMenustrue/false IsFileMenusIsViewMenus SetViewMenustrue/falseViewONE.setViewMenustrue IsImageMenus SetImageMenustrue/falseViewONE.setImageMenustrue IsPrintMenus SetPrintMenustrue/falseViewONE.setPrintMenustrue IsPageMenus SetPageMenustrue/falseViewONE.setPageMenustrue IsSelectMenus SetSelectMenustrue/falseViewONE.setSelectMenustrue IsPreferenceMenus SetPreferenceMenustrue/falseViewONE.setPreferenceMenustrue IsFileKeys SetAllMenustrue/falseIsAllMenus SetFileKeystrue/falseIsImageKeys SetImageKeystrue/falseIsPrintKeys SetPrintKeystrue/falseSetViewKeystrue/false SetSelectKeystrue/false IsViewKeysSetPageKeystrue/false IsPageKeysMethod setAllKeystrue/false Method isSelectKeysMethod isAllKeys Method stopTimeout Timeout/User Idle ControlMethod setTimeoutseconds Method getTimeoutMethod 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 descriptionsReady First time the page is viewed HSPACE=0 VSPACE=0 Event Handler exampleMayScript tag Testing your Event Handler