Watermark in Eval version

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
whoit
Posts: 12
Joined: Tue Jul 19 2005

Watermark in Eval version

Post by whoit »

Can I correctly assume that you cannot print a watermark with the Eval version of Converter since you automatically insert your eval watermark?

How can I test this feature?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hi,

You can add your own watermak to a pdf file even if you are using the demo version. The generated pdf will have two watermarks: The demo one and the one you added.

To add a watermark to a pdf file programmatically, you need to add the 'Add Watermark' flag to FileNameOptions and then call SetWatermark.

I will post here a sample VB code on adding a watermark to a pdf file.

Code: Select all

Private Sub Command2_Click()

Set pdf = New CDIntfEx.CDIntfEx

' here is the definition of the watermark parameters

   Const Watermark = "T h i s  i s  a  W a t e r M a r k"
   Const FontName = "Arial"
   Const fontSize = 36
   Const Orientation = 450
   Const color = 192   '16711935
   Const HorzPos = 100
   Const VertPos = -100
   Const Foreground = True

  pdf.DriverInit "Amyuni PDF Converter"
  pdf.EnablePrinter "LicenseTo", "ActivationCode"
  
  pdf.FileNameOptionsEx = NoPropmt + UseFileName + AddWatermark
    
    pdf.SetWatermark Watermark, FontName, fontSize, Orientation, color, HorzPos, VertPos, Foreground
    
    'printing goes here

End Sub
Hope this helps.
Post Reply