ExportToTiff error : Export feature not available

These different converters modules enables you to convert your existin documents to the above formats. These are all parts of our Document Converter produt.
Here you can post all the installation and usage issues related to the document converters including our latest DOCX Converter
Post Reply
sortiz
Posts: 5
Joined: Fri Dec 01 2006

ExportToTiff error : Export feature not available

Post by sortiz »

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
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

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)
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
Post Reply