JAVA Tech VERSION 3.0 PrintSelected, PrintVisible, PrintTransformed, SetPrintDialogtrue/false

Page 57

Method:

Method:

Method:

printSelected()

E.g. ViewONE.printSelected();

Produces a print dialog to print pages selected using the page-select menu (available for multi-page documents only). Can be used with the “selectPage(pageNumber)” and “clearSelections()” methods to print any page or group of pages within a document.

Security note: This method is disabled by default unless the “JavascriptExtensions” parameter is set to “true”.

printVisible()

E.g. ViewONE.printVisible();

Produces a print dialog to print the image display (visible).

Security note: This method is disabled by default unless the “JavascriptExtensions” parameter is set to “true”.

printTransformed()

E.g. ViewONE.printTransformed();

Generates a print with rotate, invert and flip modes applied to the image.

Security note: This method is disabled by default unless the “JavascriptExtensions” parameter is set to “true”.

setPrintDialog(true/false)

E.g. ViewONE.setPrintDialog(false);

This method applies only when the print-accelerator is used. When this parameter is set to false, printing will take place without showing the standard print-dialog. If the user has not printed using ViewONE with the accelerator previously, then the users’ default printer will be used. Otherwise, the last printer used by the user (with ViewONE print accelerator) will be used.

57

Image 57
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 ViewONEViewONE Pro Mayscript parameterApple 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 OpenFilefilename, Opening documents and imagesCloseDocument ViewONE.closeDocument Closes an open documentPage Method Group Method openListlistFile, OpenDocindex ReloadListNextDoc PrevDoc FirstDoc LastDoc GetDocIndex GetNumDocs MethodgetNumPagesMethod getPage MethodsetPagepageMethod nextPage Method previousPageMethod getCacheFile MethodgetDocReferenceMethodsetAnnotationFilefilename Specifying an Annotations FileSavefilename Saving documents and imagesSavePagefilename MethodsaveSelectedfilenameMethodisMultipageTif Document hyperlinks SetHyperlinkurl, dblClickClearHyperlink Method Pro-Only Method Pro-Only Method Cold Viewing Options Pro-Only SetBackgroundImagefilename, pageNumber IsBackgroundImageEnabled SetBackgroundImageEnabledtrue/falseSetIndexListFileURL Document Indexes Pro-OnlyInvert ImageSetInvertedtrue/false IsInvertedSetEnhanceModemode IsEnhancetrue/falseGetEnhanceMode SetRotationangleMethod setRotationArrayint angle, int Method initializeRotationArrayint sizeMethod applyRotationArray Method getRotationMethod rotateCounterclockwise MethodrotateClockwiseRotate180 SetFlipmodeSetScalescale GetFlipGetScale GetStatesMethod setStatesstring states ViewONE.zoom100 Zooms image to 100% full resolutionMethod zoomOut Method zoom100Method setZoomAndXYScrollzoom, x, y Method setZoomzoomMethod zoomAreax, y, width, height, highlight, seconds SetXYScrollx, yMethod isDraggingEnabled Method setDraggingEnabledtrue/falseMethod resetBrightness Method setBrightnesspercentMethod getBrightness Method resetContrastMethod setContrastpercent Method getContrastMethod setLuminancepercent Method resetLuminanceMethod getLuminance Method getImageWidthMethod getXResolution Method getYResolutionGetImageHeight Viewing SetViewviewGetView IsAreaZoom SetAreaZoomtrue/falseToggleAreaZoom Method setMagnifiertrue/falseMethod setMagnifierInternaltrue/false ToggleMagnifier IsMagnifierSetMagFactor Method getMagFactorIsNewWindowVisible SetImageForeColorcolorShowImageForeColorDialog ShowImageBackColorDialog SetImageBackColorcolorLabels Method selectPageint pageNumber Selection and clipboardMethod clearSelections Method copyPageToClipboardPrintPage PrintingPrintDocument PrintRangePrintVisible PrintSelectedPrintTransformed SetPrintDialogtrue/falseMethod isPrintDialog Method setPrintCopiesintegerMethod setPrinterstring Or some other informational text Method setPrintHeaderheaderStringMethod setPrintAutoRotate true/false Method setScrollbarstrue/false Toolbars and ButtonsIsScrollbars SetStatusBartrue/falseMethod isFileButtons Method setFileButtonstrue/falseMethod setImageButtonstrue/false IsImageButtonsSetPrintButtonstrue/false SetInvertButtonstrue/false Method isPrintButtonsIsInvertButtons Method setNewWindowButtonstrue/falseSetViewButtonstrue/false IsNewWindowButtonsMethod isViewButtons Method setAllButtonstrue/falseMethod isAllButtons MethodsetPageButtonstrue/falseMethod isPageButtons ToggleAdjustTool SetAdjustToolVisibleOnOffIsAdjustToolVisible SetFileMenustrue/false Menus and keysIsFileMenus ViewONE.setFileMenustrueSetViewMenustrue/false IsViewMenusViewONE.setViewMenustrue SetImageMenustrue/false IsImageMenusViewONE.setImageMenustrue SetPrintMenustrue/false IsPrintMenusViewONE.setPrintMenustrue SetPageMenustrue/false IsPageMenusViewONE.setPageMenustrue SetSelectMenustrue/false IsSelectMenusViewONE.setSelectMenustrue SetPreferenceMenustrue/false IsPreferenceMenusViewONE.setPreferenceMenustrue IsAllMenus SetAllMenustrue/falseSetFileKeystrue/false IsFileKeysIsImageKeys SetImageKeystrue/falseSetPrintKeystrue/false IsPrintKeysSetViewKeystrue/false SetPageKeystrue/false IsViewKeysIsPageKeys SetSelectKeystrue/falseMethod isSelectKeys Method setAllKeystrue/falseMethod isAllKeys Method setTimeoutseconds Timeout/User Idle ControlMethod getTimeout Method stopTimeoutMethod 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