Click or drag to resize

Stamper Class

Stamper is a utility class that can be used to PDF pages with text, images, or with other PDF content in only a few lines of code.

Although Stamper is very simple to use compared to ElementBuilder/ElementWriter it is not as powerful or flexible. In case you need full control over PDF creation use ElementBuilder/ElementWriter to add new content to existing PDF pages as shown in the ElementBuilder sample project.

Inheritance Hierarchy
SystemObject
  pdftron.PDFStamper

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class Stamper : IClosable

The Stamper type exposes the following members.

Constructors
  NameDescription
Public methodStamper
Stamper constructor.
Top
Methods
  NameDescription
Public methodClose
Public methodStatic memberDeleteStamps
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberHasStamps
Public methodSetAlignment
Sets the alignment for the x and y variables.
Public methodSetAsAnnotation
Specifies if the stamp is to be stamped as annotation or not.
Public methodSetAsBackground
Specifies if the stamp is to be stamped in the background or the foreground.
Public methodSetFont
Public methodSetFontColor
Public methodSetOpacity
Sets the opacity value for the stamp.
Public methodSetPosition(Double, Double)
Sets the horizontal and vertical position of the stamp.
Public methodSetPosition(Double, Double, Boolean)
Sets the horizontal and vertical position of the stamp.
Public methodSetRotation
Rotates the stamp by the given number of degrees.
Public methodSetSize
Sets the size of the stamp.
Public methodSetTextAlignment
Sets the text alignment (note: this only applies to text watermarks).
Public methodShowsOnPrint
Shows on print.
Public methodShowsOnScreen
Shows on screen.
Public methodStampImage
Public methodStampPage
Public methodStampText
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also