Saving documents and images
Method:
Method:
save(filename)
E.g. ViewONE.save(“c:/temp/image.tif”);
Saves the current document
If filename is null, either the save dialog is displayed or, if a server side save component has been specified, the image is sent to the server side component.
Note: The save operation does not recreate the source file, it merely copies the source file to the specified destination and renames it to the specified filename.
savePage(filename)
E.g. ViewONE.savePage(“c:/temp/page.tif”);
Saves the current page to the specified filename.
If filename is null, either the save dialog is displayed or, if a server side save component has been specified, the image is sent to the server side component.
If the document is a
Method:saveSelected(filename)
E.g. ViewONE.saveSelected(“c:/temp/selected.tif”);
Saves the current selected pages of a
If filename is null, either the save dialog is displayed or, if a server side save component has been specified, the image is sent to the server side component.
Note: this method is for use only with
27