Click or drag to resize
SignDocWatermark Class
Parameters for a watermark.
Inheritance Hierarchy
SystemObject
  de.softpro.signdocsdkSignDocWatermark

Namespace:  de.softpro.signdocsdk
Assembly:  SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.6773.37566
Syntax
C#
public sealed class SignDocWatermark : IDisposable

The SignDocWatermark type exposes the following members.

Constructors
Methods
  NameDescription
Public methodclear
Reset all parameters to their default values.
Public methodDispose
Releases all resources used by the SignDocWatermark
Public methodsetFirstPage
Set the first page number. The default value is 1.
Public methodsetFlags
Set flags. Initially, no flag is set.
Public methodsetFontName
Set the name of the font. The font name can be the name of a standard font, the name of an already embedded font, or the name of a font defined by a font configuration file. The default value is "Helvetica".
Public methodsetFontSize
Set the font size. The default value is 24.
Public methodsetHorizontalPosition
Set the horizontal position of the watermark. The default values are ha_center and 0. The distance is measured from the left edge of the page to the left edge of the watermark (ha_left), from the center of the page to the center of the watermark (ha_center), or from the right edge of the page to the right edge of the watermark. For ha_left and ha_center, positive values push the watermark to the right, for ha_right, positive values push the watermark to the left.
Public methodsetJustification
Set the justification for multi-line text. The default value is j_left. If the text (see setText()) contains only one line (ie, no newline characters), this parameter will be ignored.
Public methodsetLastPage
Set the last page number. The default value is 0.
Public methodsetLocation
Set whether the watermark will appear behind the page or on top of the page. The default value is l_overlay.
Public methodsetOpacity
Set the opacity. The default value is 1.0. Documents conforming to PDF/A-1 must use an opacity of 1.0.
Public methodsetPageIncrement
Set the page number increment. The default value is 1 (add watermark to all pages between the first page and the last page)
Public methodsetRotation
Set the rotation. The default value is 0.
Public methodsetScale
Disable scaling or set scaling relative to page. The default value is 0.5.
Public methodsetText
Set the text to be used for the watermark. The default value is empty. The text can contain multiple lines, the newline character is used to separate lines. If there are multiple lines, their relative position is specified by setJustification(). Complex scripts are supported, see @ref signdocshared_complex_scripts.By default, this function uses paragraph direction LTR.Use setFlags() if you need to set a different paragraph direction.
Public methodsetTextColor
Set the text color. The default value is SignDocGrayColor(0) (black).
Public methodsetVerticalPosition
Set the vertical position of the watermark. The default values are va_center and 0. The distance is measured from the top edge of the page to the top edge of the watermark (va_top), from the center of the page to the center of the watermark (va_center), or from the bottom edge of the page to the bottom edge of the watermark. For va_bottom and va_center, positive values push the watermark up, for va_top, positive values push the watermark down.
Top
See Also