Click or drag to resize
Pdftools logo

TextStampCreateRaw Method

Note: This API is now obsolete.

Create a text stamp annotation.

The width of the annotation is computed from the given stamp text. 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.2.0+708f7116d933787a0712d56133e4c2c9bf21e5e3
Syntax
C#
[ObsoleteAttribute("Deprecated in Version 1.0. Use static method TextStamp.Create instead.")]
public static TextStamp CreateRaw(
	Document targetDocument,
	Point topLeft,
	double? height,
	TextStampType textType,
	string text
)

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.
text  String
The text to be shown in this stamp.

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
ArgumentExceptionif the text argument is empty
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif text is .
See Also