We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

Medium Priority
1,729 Views
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 
        PDFApp.Hide() 
        ' Create Javascript bridge object 
        JSObj = PDDoc.GetJSObject() 
        ' Create Tiff file 
        JSObj.saveAs("D:/Applications/sample.tiff", "com.adobe.Acrobat.tiff") 
        PDDoc.Close() 
        PDFApp.CloseAllDocs() 
        ' Clean up 
        System.Runtime.InteropServices.Marshal.ReleaseComObject(JSObj) 
        JSObj = Nothing 
        System.Runtime.InteropServices.Marshal.ReleaseComObject(PDFApp) 
        PDFApp = Nothing 
        System.Runtime.InteropServices.Marshal.ReleaseComObject(PDDoc) 
        PDDoc = Nothing

Open in new window

Comment
Watch Question

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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.