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

Posted on 2009-02-17
Last Modified: 2013-12-02
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

Question by:hasan_tek
    1 Comment
    LVL 1

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    PaperPort is a popular document imaging/management product from Nuance Communications ( It is in widespread use by both individuals ( and businesses (http:/…
    This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now