SetWatermark-Function

If you are a VB developer and have questions about using our products from VB, here is the place to post them.

SetWatermark-Function

Postby codeklopper on Tue Mar 27 2007

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
codeklopper
 
Posts: 3
Joined: Mon Mar 26 2007

Postby Joan on Wed Apr 04 2007

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
Joan
Amyuni Team
 
Posts: 2799
Joined: Wed Sep 11 2002

Postby codeklopper on Wed Apr 04 2007

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]
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")
[/code]

Best Regards,
codeklopper
codeklopper
 
Posts: 3
Joined: Mon Mar 26 2007

Postby Joan on Thu Apr 05 2007

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
Joan
Amyuni Team
 
Posts: 2799
Joined: Wed Sep 11 2002

Postby codeklopper on Thu May 03 2007

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
codeklopper
 
Posts: 3
Joined: Mon Mar 26 2007


Return to Visual Basic Community

Who is online

Users browsing this forum: No registered users and 1 guest

cron