I am trying to use platform invocation from c# to invoke the convert method on pcltoolsdk.dll but that dll is 32 bit and my application is 64 bit. I cannot use your com server because it won't register correctly (different support ticket).
Can you provide 64 bit version of your dlls??
Thanks for your message, pcltoolsdk.dll is a 32bit DLL library, you can only call it from a 32bit EXE application. If you wish call it from a 64bit EXE application, you should call PCLtoPDFCom.exe instead of pcltoolsdk.dll, PCLtoPDFCom.exe is a COM interface based on pcltoolsdk.dll library, PCLtoPDFCom.exe can be called from both 32bit and 64bit EXE applications.
If you wish to use PCLtoPDFCom.exe, you need register it into your system first.
You can run install.vbs to register PCLtoPDFCom.exe into your system, you can also run a cmd window by administrator privilege, and then run following command line to register PCLtoPDFCom.exe into your system,
after you register "PCLtoPDFCom.exe" into your system successful, you can call "VeryPDF.PCLtoPDFCom" from your VBScript code to convert from PCL files to PDF files easily, for example,
set VeryPDFCom = CreateObject("VeryPDF.PCLtoPDFCom")
Set filesys = CreateObject("Scripting.FileSystemObject")
strFolder = filesys.GetParentFolderName(WScript.ScriptFullName)
strFolder = filesys.GetParentFolderName(strFolder)
strReturn = ""
nFileIndex = 0
strInFile = strFolder & "\test\test.pcl"
strOutFile = strFolder & "\bin\_test.pdf"
strCmd = "-$ XXXXXXXXXXXXXXXXXX """ & strInFile & """ """ & strOutFile & """"
strReturn = strReturn & VeryPDFCom.PCLtoPDF(strCmd)
nFileIndex = nFileIndex+1