SpreadJS 13
GC.Spread.Sheets.Print Namespace / PrintInfo type / watermark Method
The watermark item.
The watermark begin x position.
The watermark begin y position.
The watermark width.
The watermark height.
The watermark image src.
The watermark page, support "all", "odd", \u201ceven\u201d, "1,3,4,7,8,9,".
In This Topic
    watermark Method
    In This Topic
    Gets or set all watermark.
    Syntax
    var instance = new GC.Spread.Sheets.Print.PrintInfo();
    var returnValue; // Type: any
    returnValue = instance.watermark(value,
                                     value.x,
                                     value.y,
                                     value.width,
                                     value.height,
                                     value.imageSrc,
                                     value.page);
    function watermark( 
       (optional) value : undefined,
       (optional) value.x : number,
       (optional) value.y : number,
       (optional) value.width : number,
       (optional) value.height : number,
       (optional) value.imageSrc : string,
       (optional) value.page : string
    ) : any;

    Parameters

    value
    The watermark item.
    value.x
    The watermark begin x position.
    value.y
    The watermark begin y position.
    value.width
    The watermark width.
    value.height
    The watermark height.
    value.imageSrc
    The watermark image src.
    value.page
    The watermark page, support "all", "odd", \u201ceven\u201d, "1,3,4,7,8,9,".
    Example
    // This example shows how to set watermark.
    var printInfo = activeSheet.printInfo();
    printInfo.watermark([{x:0, y:0, width:100, height:100, imageSrc:".image/watermark.jpg", page:"all"}]);
    activeSheet.printInfo(printInfo);
    spread.print(0);
    See Also

    Reference

    PrintInfo type