[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.StampAnnotation

StampAnnotation Class

Represents an annotation that displays text or graphics intended to look as if they were stamped on the page with a rubber stamp.

Namespace: GrapeCity.Documents.Pdf.Annotations
Assembly: DS.Documents.Pdf.dll
Syntax
public class StampAnnotation : MarkupAnnotation, IOwnedObject, IContentItem, IPdfDict
Public Class StampAnnotation
    Inherits MarkupAnnotation
    Implements IOwnedObject, IContentItem, IPdfDict

Constructors

Name Description
StampAnnotation()

Initializes a new instance of the StampAnnotation class.

Properties

Name Description
BorderWidth

Gets or sets the border width.

CreationDateFormat

Gets or sets the format which should be used to display CreationDate.

Font

Gets or sets a font to draw the stamp.

Icon

Gets or sets a string specifying the name of an icon used to display the annotation.

The PDF specification provides a predefined set of icons, those are provided by the StampAnnotationIcon enumeration.

In practice though this entry often contains names of custom icons specific to the application that created the document, hence this property is a string so it can accommodate arbitrary values.

To assign a predefined icon, use code like the following:
Icon = StampAnnotationIcon.Approved.ToString();
RotationAngle

Gets the angle, in degrees, by which the stamp is rotated. Positive values indicate counterclockwise rotation.

ShowCreationDate

Gets or sets a value indicating whether to show CreationDate on the stamp.

ShowUserName

Gets or sets a value indicating whether to show UserName on the stamp.

Methods

Name Description
RotateContent(float)

Rotates the annotation content by the specified angle. Positive values indicate counterclockwise rotation.

Note that the annotation must be added to a document before calling this method.

Extension Methods