setting up via vbs

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
ddnwolff
Posts: 7
Joined: Thu Nov 21 2002
Location: Des Moines, Ia

setting up via vbs

Post by ddnwolff »

I am using the following code to set-up AMYUNI.

Code: Select all

set pdf = CreateObject("cdintf.cdintf")

pdf.pdfdriverinit("Amyuni PDF Converter")
pdf.driverinit("Amyuni PDF Converter")

pdf.resolution = 150
pdf.jpegcompression = true

pdf.defaultdirectory = "c:\documents and settings\all users\desktop"
pdf.fontembedding = true
pdf.filenameoptionsex = 2363408
pdf.setdefaultconfig()
This works with an older Version of Amyuni installed. But if I do a new install of versoin 2.5 and try to run this script I get an error on line 1
Activex component can't create object :cdinft.cdintf. Any ideas what I need to do to fix this problem

Thanks

Dan Wolff
dan.d.wolff@emcins.com
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Using version 2.50, you need to replace cdintf by cdintfex in your code and you need to add a call to EnablePrinter.

Here is the modified code:

Code: Select all

set pdf = CreateObject("cdintfex.cdintfex") 

pdf.pdfdriverinit("Amyuni PDF Converter") 
pdf.EnablePrinter(LicenseTo, ActivationCode)
pdf.driverinit("Amyuni PDF Converter") 

pdf.resolution = 150 
pdf.jpegcompression = true 

pdf.defaultdirectory = "c:\documents and settings\all users\desktop" 
pdf.fontembedding = true 
pdf.filenameoptionsex = 2363408 
pdf.setdefaultconfig()
You will find LicenseTo and ActivationCode in your Install.ini file or in the e-mail you got from our sales department.

Please note that you need to call EnablePrinter before printing as well in case you are using a developer version of the driver.

Hope this helps.
Post Reply