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")
BatchConvert
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
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
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.
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.