[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.WatermarkAnnotation

Class WatermarkAnnotation

Namespace
GrapeCity.Documents.Pdf.Annotations
Assembly
GcDocs.Pdf.dll

Defines a graphics that are expected to be printed at a fixed size and position on a page, regardless of the dimensions of the printed page.

public class WatermarkAnnotation : AnnotationBase, IOwnedObject, IContentItem, IPdfDict
Inheritance
object
WatermarkAnnotation
Implements
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Constructors

WatermarkAnnotation()

Initializes a new instance of the WatermarkAnnotation class.

public WatermarkAnnotation()

Properties

HorzTranslate

Gets or sets the amount to translate the associated content horizontally, as a percentage of the width of the target media (or if unknown, the width of the page’s MediaBox). 1.0 represents 100% and 0.0 represents 0%. Negative values are not recommended, since they may cause content to be drawn off the page.

public float HorzTranslate { get; set; }

Property Value

float

Image

Gets or sets the image if WatermarkAnnotation, if both Text and Image are specified then Image is used as watermark content.

public IImage Image { get; set; }

Property Value

IImage

Matrix

Gets or sets the matrix used to transform the annotation’s rectangle before rendering.

public Matrix3x2 Matrix { get; set; }

Property Value

System.Numerics.Matrix3x2

Text

Gets or sets the text of WatermarkAnnotation, if both Text and Image are specified then Image is used as watermark content.

public string Text { get; set; }

Property Value

string

TextFormat

Gets or sets the TextFormat object that specifies the formatting of the annotation's text.

Note that this object itself is not persisted in the PDF, just its properties are used to generate the appearance of this watermark annotation.

public TextFormat TextFormat { get; set; }

Property Value

TextFormat

VertTranslate

Gets or sets the amount to translate the associated content vertically, as a percentage of the height of the target media (or if unknown, the height of the page’s MediaBox). 1.0 represents 100% and 0.0 represents 0%. Negative values are not recommended, since they may cause content to be drawn off the page.

public float VertTranslate { get; set; }

Property Value

float