I am running the following code and get an error when I run the following line:
pdfDoc.ExportToTIFF("c:\tres.tif",cdi.FileNameOptionsEx)
Error:
"Ole IDispatch exception code 65535 from CDINT~1:TIFF
Export feature not available."
I purchase the Amyuni PDF Suite (Converter - Creator) Professional Version for WindowsR Developer License
Any help is appreciated Below is the code :
cdi = CREATEOBJECT("CDIntfEx.CDIntfEx")
pdfDoc = CREATEOBJECT("CDIntfEx.Document")
cdi.DriverInit("Amyuni PDF Suite")
cdi.EnablePrinter(LicensedTo,ActivationCode)
pdfDoc.Open("c:\tres.pdf")
pdfDoc.Optimize(0)
pdfDoc.SetLicenseKey(LicensedTo,ActivationCode)
cdi.FileNameOptionsEx = NoPrompte + usefilename
pdfDoc.ExportToTIFF("c:\tres.tif",cdi.FileNameOptionsEx)
Thanks,
Sergio
ExportToTiff error : Export feature not available
Hello,
Here are more informaiton about ExportToTiff():
Tiff Options are as follows:
acTiffExportOptionCCITTDefault 0x13107210
acTiffExportOptionCCITTLow 0x09830410
acTiffExportOptionCCITTMedium 0x19660810
acTiffExportOptionCCITTHigh 0x39321610
cdi.FileNameOptions is used when generating a new PDF file and not when converting an existing PDf to Tiff.
Hope this helps
Here are more informaiton about ExportToTiff():
Code: Select all
// general declations
cdi = CREATEOBJECT("CDIntfEx.CDIntfEx")
pdfDoc = CREATEOBJECT("CDIntfEx.Document")
cdi.DriverInit("Amyuni PDF Suite")
cdi.EnablePrinter(LicensedTo,ActivationCode)
// code needed to Export an existing PDF to Tiff
pdfDoc.Open("c:\tres.pdf")
pdfDoc.Optimize(0)
pdfDoc.SetLicenseKey(LicensedTo,ActivationCode)
pdfDoc.ExportToTIFF("c:\tres.tif",TiffOpption)
acTiffExportOptionCCITTDefault 0x13107210
acTiffExportOptionCCITTLow 0x09830410
acTiffExportOptionCCITTMedium 0x19660810
acTiffExportOptionCCITTHigh 0x39321610
cdi.FileNameOptions is used when generating a new PDF file and not when converting an existing PDf to Tiff.
Hope this helps