asposecells.api

Class RenderingWatermark

Watermark for rendering.

Constructor Summary
RenderingWatermark(text, renderingFont)
Creates instance of text watermark.
RenderingWatermark(imageData)
Creates instance of image watermark.
 
Property Getters/Setters Summary
methodgetFont()
Gets font of the watermark.
methodgetHAlignment()
method
           Gets or sets horizontal alignment of the watermark to the page. The value of the property is TextAlignmentType integer constant.
methodgetImage()
Gets image of the watermark.
methodisBackground()
method
           Indicates whether the watermark is placed behind page contents.
methodgetOffsetX()
method
setOffsetX(value)
           Gets or sets offset value to HAlignment
methodgetOffsetY()
method
setOffsetY(value)
           Gets or sets offset value to VAlignment
methodgetOpacity()
method
setOpacity(value)
           Gets or sets opacity of the watermark in range [0, 1].
methodgetRotation()
method
           Gets or sets roation of the watermark in degrees.
methodgetScaleToPagePercent()
method
           Gets or sets scale relative to target page in percent.
methodgetText()
Gets text of the watermark.
methodgetVAlignment()
method
           Gets or sets vertical alignment of the watermark to the page. The value of the property is TextAlignmentType integer constant.
 

    • Constructor Detail

      • RenderingWatermark

        RenderingWatermark(text, renderingFont)
        Creates instance of text watermark.
        Parameters:
        text: String - watermark text
        renderingFont: RenderingFont - watermark font
      • RenderingWatermark

        RenderingWatermark(imageData)
        Creates instance of image watermark.
        Parameters:
        imageData: byte[] -
    • Property Getters/Setters Detail

      • getRotation/setRotation : float 

        float getRotation() / setRotation(value)
        
        Gets or sets roation of the watermark in degrees.
      • getScaleToPagePercent/setScaleToPagePercent : int 

        int getScaleToPagePercent() / setScaleToPagePercent(value)
        
        Gets or sets scale relative to target page in percent.
      • getOpacity/setOpacity : float 

        float getOpacity() / setOpacity(value)
        
        Gets or sets opacity of the watermark in range [0, 1].
      • isBackground/setBackground : boolean 

        boolean isBackground() / setBackground(value)
        
        Indicates whether the watermark is placed behind page contents.
      • getText : String 

        String getText()
        
        Gets text of the watermark.
      • getImage : byte[] 

        byte[] getImage()
        
        Gets image of the watermark.
      • getHAlignment/setHAlignment : int 

        int getHAlignment() / setHAlignment(value)
        
        Gets or sets horizontal alignment of the watermark to the page. The value of the property is TextAlignmentType integer constant. Only Left, Center, Right is valid. Default is Left.
      • getVAlignment/setVAlignment : int 

        int getVAlignment() / setVAlignment(value)
        
        Gets or sets vertical alignment of the watermark to the page. The value of the property is TextAlignmentType integer constant. Only Top, Center, Bottom is valid. Default is Top.
      • getOffsetX/setOffsetX : float 

        float getOffsetX() / setOffsetX(value)
        
        Gets or sets offset value to HAlignment
      • getOffsetY/setOffsetY : float 

        float getOffsetY() / setOffsetY(value)
        
        Gets or sets offset value to VAlignment