 | CustomStampCreate Method |
Create a custom stamp annotation.
The returned custom stamp annotation's appearance has an empty content with size equal to the given
boundingBox,
and with coordinate origin located at the bottom left corner.
Use a
ContentGenerator to generate the stamp's content prior to adding the stamp annotation to a page's list of annotations.
Namespace: PdfTools.Toolbox.Pdf.AnnotationsAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.7.1+cd848a3eabf1b263af73d28a644a529edd2f1318
Syntaxpublic static CustomStamp Create(
Document targetDocument,
Rectangle boundingBox
)
Parameters
- targetDocument Document
-
The output document with which the returned object is associated.
- boundingBox Rectangle
-
The location of the annotation on the page.
Return Value
CustomStamp
The newly created custom stamp annotation.
ExceptionsException | Condition |
---|
ArgumentException | if the targetDocument has already been closed |
ArgumentException | if the targetDocument is read-only |
ArgumentNullException | if targetDocument is . |
See Also