SpreadJS Documentation
GC.Spread.Sheets.Print Namespace / PrintInfo type / watermark Method
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 value; // Type: any
    value = instance.watermark(The, item.x, item.y, item.width, item.height, item.imageSrc, item.page);
    function watermark( 
       The : undefined,
       item.x : number,
       item.y : number,
       item.width : number,
       item.height : number,
       item.imageSrc : string,
       item.page : string
    ) : any;

    Parameters

    The
    watermark item.
    item.x
    The watermark begin x position.
    item.y
    The watermark begin y position.
    item.width
    The watermark width.
    item.height
    The watermark height.
    item.imageSrc
    The watermark image src.
    item.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