StampAnnotation

StampAnnotation

Overview

StampAnnotation is a type in Aspose.PDF FOSS for Go.

StampAnnotation is a rubber-stamp annotation.

This type provides 10 methods for working with StampAnnotation objects in Go programs. Available methods include: AnnotationType, ClearCustomImage, HasCustomImage, Name, RawName, RegenerateAppearance, SetCustomImage, SetCustomImageFromStream, SetName, SetRawName. All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

Methods

SignatureDescription
AnnotationType()AnnotationTypeReturns the annotation type.
Name()StampNameName returns the StampName decoded from /Name.
SetName(n: StampName)SetName writes the /Name entry from a typed StampName.
RawName()stringRawName returns the /Name entry as a raw string ("/Approved", custom).
SetRawName(s: string)SetRawName writes the /Name entry from a raw string.
HasCustomImage()boolHasCustomImage returns true if SetCustomImage / SetCustomImageFromStream has been called and not subsequently cleared.
RegenerateAppearance()RegenerateAppearance forces /AP/N to be rebuilt from current state.
SetCustomImage(path: string)errorSetCustomImage embeds the image at path as the stamp’s /AP/N visual, overriding the predefined-name template.
SetCustomImageFromStream(r: io.Reader)errorSetCustomImageFromStream is the io.Reader variant of SetCustomImage.
ClearCustomImage()ClearCustomImage reverts /AP/N to the predefined-name template visual.

See Also