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.FourHeights.PdfToolbox.Pdf.Annotations
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.6+c8104d9b5f50644b2c93d424e62edbf40828fde7
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