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.FourHeights.PdfToolbox.Pdf.Annotations
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 1.0.0
Syntax
C#
[ObsoleteAttribute("Deprecated in Version 4.2. 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