Click or drag to resize

CPDFWatermark Class

This class is mainly used to construct a watermark with specified parameters, and then insert it to PDF page. The watermark object can be constructed from text, bitmap or image, and PDF page.
Inheritance Hierarchy

Namespace:  ComPDFKit.PDFWatermark
Assembly:  ComPDFKit.NET (in ComPDFKit.NET.dll) Version: 2.0.0.0
Syntax
C#
public class CPDFWatermark

The CPDFWatermark type exposes the following members.

Properties
  NameDescription
Public propertyType
Gets watermark type,more:C_Watermark_Type
Top
Methods
  NameDescription
Public methodClearWatermark
Removes watermark.
Public methodCreateWatermark
Creates watermark.
Public methodIsValid
Whether object is valid, false means the object resource is released, you cannot use the object to call any method.
Public methodRelease
Releases Watermark object resource.
Public methodSetFontName
Sets font of text watermark.
Public methodSetFontSize
Sets font size of text watermark.
Public methodSetFront
Sets watermark layer. True means watermark is in front of text, false means behind text.
Public methodSetFullScreen
Sets tiled watermark.
Public methodSetHorizalign
Sets horizontal alignment,more:C_Watermark_Horizalign
Public methodSetHorizOffset
Sets horizontal deviation.
Public methodSetHorizontalSpacing
Sets the horizontal spacing for the tiled watermark.
Public methodSetImage(Byte, Int32, Int32)
Sets image watermark with Bitmap by pixel.
Public methodSetImage(String, String, Int32, Int32)
Public methodSetOpacity
Sets opacity.
Public methodSetPages
Sets page range of watermark. Page range, such as:1,2,3 or 1-3
Public methodSetRotation
Sets rotation angle.
Public methodSetScale
Sets zoom level.
Public methodSetText
Sets content of text watermark.
Public methodSetTextRGBColor
Sets font color of text watermark.
Public methodSetVertalign
Sets vertical alignment,more:C_Watermark_Vertalign
Public methodSetVerticalSpacing
Sets vertical spacing for the tiled watermark.
Public methodSetVertOffset
Sets vertical deviation.
Public methodUpdateWatermark
Updates watermark.
Top
See Also