Adding watermarks using DLL

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
Thilaka
Posts: 1
Joined: Mon Jan 12 2004

Adding watermarks using DLL

Post by Thilaka »

Caqn someone please provide a sample code on how to add water marks using the DLL (at least how to declare the function in the DLL)
Best Regards,
Thilaka
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please find here the declation of SetWatermak in Visual Basic.

Declare Function SetWatermark Lib "CDintf210" (ByVal hPrinter As Long, ByVal szWatermark As String, ByVal szFont As String, ByVal fontSize As Integer, ByVal Orientation As Integer, ByVal color As Long, ByVal xPos As Long, ByVal yPos As Long, ByVal bForeground As Long) As Long


Hope this helps, if not I can provide you with a VB sample on calling SetWatermark.

Please note that you need to add the options 64 to FileNameOptions to be able to add a watermark to the pdf file.
Post Reply