toColor()

Description

Converts a grey or black-and-white document in the editor to a colour one.

Syntax

DocumentEditorObject.document.toColor();

Parameters

None

Return value

bool

true indicates success. false indicates failure.

Remarks

If there is no document in the document editor, when you check getErrorString(), you will get an error "There is no document in the document editor.".

When false is returned, check getErrorCode() or getErrorString() for error information.

Example

if (DCSObject) {
    var documenteditor = DCSObject.getDocumentEditor("DocumentEditorContainer");
    documenteditor.document.toColor();
}

See Also

.document.toGrey()
.document.toBlackWhite()

Is this page helpful?

Leave a Reply

Your email address will not be published.