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.
Namespace: pdftron.PDF
public sealed class Stamper : IClosable
The Stamper type exposes the following members.
Name | Description | |
---|---|---|
![]() | Close | |
![]() ![]() | DeleteStamps | |
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | HasStamps | |
![]() | SetAlignment | Sets the alignment for the x and y variables.
|
![]() | SetAsAnnotation | Specifies if the stamp is to be stamped as annotation or not.
|
![]() | SetAsBackground | Specifies if the stamp is to be stamped in the background or the foreground.
|
![]() | SetFont | |
![]() | SetFontColor | |
![]() | SetOpacity | Sets the opacity value for the stamp.
|
![]() | SetPosition(Double, Double) | Sets the horizontal and vertical position of the stamp.
|
![]() | SetPosition(Double, Double, Boolean) | Sets the horizontal and vertical position of the stamp.
|
![]() | SetRotation | Rotates the stamp by the given number of degrees.
|
![]() | SetSize | Sets the size of the stamp.
|
![]() | SetTextAlignment | Sets the text alignment (note: this only applies to text watermarks).
|
![]() | ShowsOnPrint | Shows on print.
|
![]() | ShowsOnScreen | Shows on screen.
|
![]() | StampImage | |
![]() | StampPage | |
![]() | StampText | |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |