BatchConvert

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
Reinhard
Posts: 3
Joined: Wed Jan 04 2006

BatchConvert

Post by Reinhard »

I tried to use BatchConvert method of the cdi object.
Version 2.06 works fine.
DemoVersion 2.5 hangs after printing the first Dokument.
(BatchConvert does not return)
Is there a bug in 2.5?


Set cdi = New CDIntfEx.CDIntfEx

Retry:
cdi.PDFDriverInit Trim$(PDFPRINTER)
cdi.EnablePrinter Trim$(COMPANY), Trim$(LICENSEKEY)
cdi.FileNameOptionsEx = NoPrompt + UseFileName
cdi.DefaultDirectory = "C:\BatchConvert\"
'cdi.DefaultFileName = strDestination & strPDFName
cdi.SetDefaultPrinter
cdi.EnablePrinter !! Only Version 2.5
cdi.BatchConvert ("C:\BatchConvert\*.doc")
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I tried to use batchconvert in our latest version 2.50f and didn’t have any problem
Please check that you are using the latest version. For EnablePrinter it is needed before each print out in version 2.50.

Hope this helps
Reinhard
Posts: 3
Joined: Wed Jan 04 2006

Post by Reinhard »

Sorry,

the version i worked with is 2.50f not 2.5. After installing the product again, BatchConvert works fine.

But next problem, i can't set watermarks with the demo version of 2.50f. In version 2.06 i have no problem with watermarks. Is this function disabled in the demo version?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

hello,

No this function is not disabled. Are you adding the add watermarks value to FileNameOptions ?

Hope this helps
Reinhard
Posts: 3
Joined: Wed Jan 04 2006

Post by Reinhard »

I don't get watermarks to work.
Node, we are using the Demo-Version 2.50f.
With Developer-Version 2.06 the following code works fine.

Set cdi = New CDIntfEx.CDIntfEx
cdi.PDFDriverInit Trim$(PDFPRINTER)
cdi.EnablePrinter Trim$(COMPANY), Trim$(LICENSEKEY)
cdi.FileNameOptionsEx = NoPrompt + UseFileName + PrintWatermark
cdi.DefaultDirectory = "C:\BatchConvert\"
cdi.DefaultFileName = strDestination & strPDFName
cdi.SetDefaultPrinter
cdi.EnablePrinter !! Only Version 2.50f
cdi.SetWatermark(Trim$(sWatermark),TRIM$(sFont),isFontSize, isOrientation,ilColour,ilXPos,ilYPos,ibForeground)
cdi.BatchConvert ("C:\BatchConvert\1.doc")

It is necessary for us to know that the DeveloperVersion 2.50f is able to print watermarks. Do you have any idea what can be wrong with our code?

Thanks
Reinhard
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I will check this issue and if this is a bug i will notify our Developers about it to fix it.

Thanks.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I tried this issue using the latest version of the PDF Converter, i was able to add watermarks when using BatchConvert, i didn't get any problem.

I don't see anything wrong in your code as well, you can however move the call to SetWatermark right after your call to FileNameOptions, this will not solve the problem however.

I suggest you debug your code and check the values that are used at run time specially for the SetWatermak parameters. Also please check that you are using the right activation code for version 2.50f.

Hope this helps.
Post Reply