Apitron.PDF.Kit library for .NET
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Initializes a new instance of the Object class.
Namespace: Apitron.PDF.Kit.Interactive.Annotations
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax
public WatermarkAnnotation( Boundary boundary, AnnotationFlags flags = AnnotationFlags.Default, AnnotationBorderStyle borderStyle = null )
Parameters
- boundary
- Type: Apitron.PDF.Kit.FixedLayoutBoundary
The annotation boundary. - flags (Optional)
- Type: Apitron.PDF.Kit.Interactive.AnnotationsAnnotationFlags
The flags. - borderStyle (Optional)
- Type: Apitron.PDF.Kit.Interactive.AnnotationsAnnotationBorderStyle
The border style.
Examples
C#
WatermarkAnnotation watermarkAnnotation = new WatermarkAnnotation(new Boundary(200, 10, 400, 30)); FixedContent normalAppearance = new FixedContent("N", new Boundary(0, 0, 200, 20)); TextObject textObject = new TextObject(StandardFonts.Helvetica, 15); textObject.AppendText("Apitron watermark annotation."); normalAppearance.Content.AppendText(textObject); watermarkAnnotation.Appearance.Normal = normalAppearance; page.Annotations.Add(watermarkAnnotation);
See Also