Universal Document Converter
Información general
Descargas
Comprar
Tutoriales
Desarrolladores
Soporte técnico
Acerca de fCoder SIA


      Búsqueda en el sitio
   


      Conversiones populares
Adobe PDF a JPEG
Word Document a PDF
Hojas de cálculo Excel a PDF
PowerPoint a JPEG
Diseño Visio a PDF
Diseño AutoCAD a TIFF
Página web a JPEG
Convertir de cálculo Excel a PDF
Convertir DjVu a PDF
Convertir una página web a PDF

      Tutorial de vídeo
Ver el tutorial



Página principal>Developer Solutions>Interfaces>IUDC>IUDCPrinter>IProfile>IWatermark>IPictureWatermark

IPictureWatermark


The IPictureWatermark interface is used to configure the application of graphic watermarks to output file pages.

Properties

Enum EmbossingMethod

Defines the method of applying a watermark to document pages. It is both readable and writable.
ConstantValueDescription
WME_STAMP0Watermark is applied over the document
WME_WATERMARK2Watermark is "mixed" in with the document
WME_BACKGROUND3Watermark is placed underneath the document

String ImgFilePath
Holds the path to the graphic file which will be applied to document pages as a watermark. It is both readable and writable.

Integer MarginsX
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.

Integer MarginsY
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.

Enum PositionX
Defines watermark horizontal alignment on the pages of a document. It is both readable and writable.
ConstantValueDescription
POS_LEFT0xFFFFFFFFWatermark is left-justified on page
POS_CENTER0Watermark is centered on page
POS_RIGHT1Watermark is right-justified on page

Enum PositionY
Defines watermark vertical alignment on the pages of a document. It is both readable and writable.
ConstantValueDescription
POS_TOP0xFFFFFFFFWatermark is aligned with the top of the page
POS_CENTER0Watermark is vertically centered on page
POS_BOTTOM1Watermark is aligned with the bottom of the page

Enum Rotation
Defines watermark rotation angle on a page. It is both readable and writable.
ValueDescription
-90Watermark is rotated 90 degrees counterclockwise
-45Watermark is rotated 45 degrees counterclockwise
0Watermark is not rotated.
45Watermark is rotated 45 degrees clockwise
90Watermark is rotated 90 degrees clockwise

Boolean Stretch
Defines whether a watermark will be stretched to cover the entire page in a document. It is both readable and writable.
ValueDescription
TRUEWatermark will be stretched to cover entire page
FALSEWatermark will not be stretched

Examples

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


© fCoder SIA Acerca de fCoder SIA | Mapa del sitio