Universal Document Converter
Informazioni sul prodotto
Scarica
Acquista
Tutorial
Soluzioni per sviluppatori
Servizio di assistenza
Chi fCoder SIA


      Cerca nel sito
   


      Conversioni più richieste
Da Adobe PDF a JPEG
Da documento Word a PDF
Da foglio di lavoro Excel a PDF
Da PowerPoint a JPEG
Da disegno Visio a PDF
Da disegno AutoCAD a TIFF
Da pagina Web a JPEG
Convertire di lavoro Excel in PDF
Convertire da DjVu in PDF
Pagine Web in PDF



Pagina principale>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


© 2001-2017 fCoder SIA Chi fCoder SIA | Mappa del sito