Click or drag to resize
Pdftools logo

TextStampCreate Method

Create a text stamp annotation.

The width of the annotation is computed based on the given textType. The returned text stamp annotation is not yet part of any page. It can be added to a page's list of annotations.

Namespace: PdfTools.Toolbox.Pdf.Annotations
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
Syntax
C#
public static TextStamp Create(
	Document targetDocument,
	Point topLeft,
	double? height,
	TextStampType textType
)

Parameters

targetDocument  Document
The output document with which the returned object is associated.
topLeft  Point
The location of the annotation's upper left corner on the page.
height  NullableDouble
The height of the annotation.
textType  TextStampType
The text stamp type.

Return Value

TextStamp
The newly created text stamp annotation.
Exceptions
ExceptionCondition
ArgumentExceptionif the targetDocument has already been closed
ArgumentExceptionif the targetDocument is read-only
ArgumentExceptionif the textType argument is CustomStampText
ArgumentNullExceptionif targetDocument is .
See Also