SetWatermark-Function

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
codeklopper
Posts: 3
Joined: Mon Mar 26 2007

SetWatermark-Function

Post by codeklopper »

Hi,

I am trying to create a watermark from a pdf file. I only found the method SetWatermark in your Dll which enables to create a simple text watermark. The method is not overloaded and I didn't find an equivalent function for creating a watermark from a pdf file.

How can I create a watermark from a pdf file?

Regards,
codeklopper
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

You can use our Merge() or MergeEx() functions to merge two pdf files and thus create a watermark from a pdf file.

The equivalent DLL function is MergeFiles().

Hop this helps
codeklopper
Posts: 3
Joined: Mon Mar 26 2007

Post by codeklopper »

Thank you for your response.

It would be cool if you provide a little example code for merging two pdf files.

I have codes something like this which throws an exception at line 3:

Code: Select all

  Dim CDInf As CDIntfEx.CDIntfEx
  Dim Doc As CDIntfEx.Document
  Call Doc.Open("C:/document.pdf")
  Call Doc.Merge("C:/stationery.pdf", 0)
  Call Doc.Save("C:/result.pdf")
Best Regards,
codeklopper
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

The code I will provide will be very similar to yours.


Except that i will add a SetLicenseKey after the Open command

Which version of the PDF Converter are you using? If you are using an old verison i suggest that you try using our latest vesion 3.0 or version 2.51
codeklopper
Posts: 3
Joined: Mon Mar 26 2007

Post by codeklopper »

Hello Joan,

I am using version 2.10i-8 what you can obtain from the epoline website.
http://docs.epoline.org/epoline/product ... .10i-8.zip

Even a simple example like

Dim Doc As CDIntfEx.Document
Call Doc.Open("C:/document.pdf")

throws an exception in line 2.

Do you have any advice?

Best Regards,
codeklopper
Post Reply