The IPictureWatermark interface is used to configure the application of graphic watermarks to output file pages.
Defines the method of applying a watermark to document pages. It is both readable and writable.
|Watermark is applied over the document
|Watermark is "mixed" in with the document
|Watermark is placed underneath the document
Holds the path to the graphic file which will be applied to document pages as a watermark. It is both readable and writable.
Defines watermark horizontal margins, i. e. offsets (in pixels) from the right and left edges of the page to be taken into account when placing the watermark. It is both readable and writable.
Defines watermark vertical margins, i. e. offsets (in pixels) from the top and bottom edges of the page to be taken into account when placing the watermark. It is both readable and writable.
Defines watermark horizontal alignment on the pages of a document. It is both readable and writable.
|Watermark is left-justified on page
|Watermark is centered on page
|Watermark is right-justified on page
Defines watermark vertical alignment on the pages of a document. It is both readable and writable.
|Watermark is aligned with the top of the page
|Watermark is vertically centered on page
|Watermark is aligned with the bottom of the page
Defines watermark rotation angle on a page. It is both readable and writable.
|Watermark is rotated 90 degrees counterclockwise
|Watermark is rotated 45 degrees counterclockwise
|Watermark is not rotated.
|Watermark is rotated 45 degrees clockwise
|Watermark is rotated 90 degrees clockwise
Defines whether a watermark will be stretched to cover the entire page in a document. It is both readable and writable.
|Watermark will be stretched to cover entire page
|Watermark will not be stretched
Visual Basic 6
Dim objUDC As IUDC Dim itfPrinter As IUDCPrinter Dim itfProfile As IProfile Set objUDC = New UDC.APIWrapper Set itfPrinter = objUDC.Printers("Universal Document Converter") Set itfProfile = itfPrinter.Profile itfProfile.Watermark.Mode = WM_PICTURE itfProfile.Watermark.PictureWatermark.EmbossingMethod = WME_BACKGROUND itfProfile.Watermark.PictureWatermark.ImgFilePath = "C:\My stamp.png" itfProfile.Watermark.PictureWatermark.MarginsX = 0 itfProfile.Watermark.PictureWatermark.MarginsY = 0 itfProfile.Watermark.PictureWatermark.PositionX = POS_CENTER itfProfile.Watermark.PictureWatermark.PositionY = POS_CENTER itfProfile.Watermark.PictureWatermark.Rotation = 0 itfProfile.Watermark.PictureWatermark.Stretch = True