PDF to TIFF using Acrobat and VB.Net.Error: UnsupportedValueError: Value is unsupported. ===> Parameter cConvID

I'm trying to use the following VB function to transform a pdf
document to a tiff file, do some GDI+ image modification and transer back to PFD format: I have problem dusing first step conversion of PDF to TIFF
I am using Visual Studio 2008, VB.Net , Acrobat 9
Using the following code, But when I type
'JSObj.saveAs("D:/Applications/sample.tiff", "com.adobe.acrobat.tiff")'
Visual studio intelisence doesn't show the SaveAs method at all. I went ahead and typed it, but got the following error in that line
Error: UnsupportedValueError: Value is unsupported. ===> Parameter cConvID
I tried googling forvthat error, but could not find a solution. Please help.
I am trying to do a proof of concept to my client saying that Adobe acrobat could help them convert PDF to TIFF and Tiff to PDF and they are ready to buy the product if I prove that in the .Net environment.

Wierd thing is I am not getting the 'saveAs()' method as an option for the JSObj at all I am just forcibily typing it. May be, do you guys think I am missing any reference. I have a project reference for the Acrobat 9 com component (Component Name: Acrobat Typelib version 1.0, C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.tlb
Please help.

Dim JSObj As Object, strPDFText As String 
        ' Create Acrobat Application object 
        PDFApp = CreateObject("AcroExch.App") 
        ' Create Acrobat Document object 
        PDDoc = CreateObject("AcroExch.PDDoc") 
        ' Open PDF file 
        PDDoc.Open("D:\Applications\Test_winapp\PDFUtility\WindowsApplication1\WindowsApplication1\sample.pdf") ' Path of some PDF you want to open 
        ' Hide Acrobat application so everything is done in silent mode 
        ' Create Javascript bridge object 
        JSObj = PDDoc.GetJSObject() 
        ' Create Tiff file 
        JSObj.saveAs("D:/Applications/sample.tiff", "com.adobe.Acrobat.tiff") 
        ' Clean up 
        JSObj = Nothing 
        PDFApp = Nothing 
        PDDoc = Nothing

Open in new window

Who is Participating?
hasan_tekAuthor Commented:
I figured out the solution to the issue from another forum. Acrobat 9 you must use "com.adobe.acrobat.tiff" for parameter cConvID.
That work.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.