Acrobat DLL Exception (Transforming pdf to tif)



I'm trying to use the following VB function to transform a pdf
document to a tiff one:
http://forums.microsoft.com/msdn/showpost.aspx?postid=1665127&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=1

Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal
fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object

' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")

' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")

' Open PDF file
PDDoc.Open(fullPathPDF)

' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")

' Hide Acrobat application so everything is done in silent
mode
PDFApp.Hide()

' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()

' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
"com.adobe.acrobat.tiff"
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "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

System.Runtime.InteropServices.Marshal.ReleaseComObject(AVDoc)
AVDoc = Nothing

End Sub

It gives an exception at line PDFApp = CreateObject("AcroExch.App")
=> Cannot create ActiveX component

I have acrobat 8. Do I need to install SDK or some other component?
.



Relevant Pages

  • RE: Acrobat DLL Exception (Transforming pdf to tif)
    ... You need to register the ActiveX component using the regsvr32.exe utility ... Dim PDFApp As Acrobat.AcroApp ... Dim PDDoc As Acrobat.CAcroPDDoc ... ' Create Acrobat Application object ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Converting Word Hyperlinks into Acrobat
    ... came to the result that Acrobat has a problem. ... PDF, error messages popped up telling that bookmarks were missing). ... If you replace your hyperlinks by ordinary cross-references (as created via ... About the Adobe Acrobat settings in Word: ...
    (microsoft.public.word.docmanagement)
  • Re: "Doing" datasheets
    ... "martin griffith" wrote in message ... > produce a pdf file, that I can zoom into without loss of resolution. ... Buy Adobe Acrobat. ... Acrobat gives you a couple of printer drivers just like pdf995, ...
    (sci.electronics.design)
  • RE: VBA with Adobe
    ... Distiller" and "Acrobat PDFMaker". ... hard to strip it down to just the PDF stuff, but hopefully this will give you ... Public Function PDFConvertPSToPDF(argPSPath As String, ... Dim strPDFFullPath As String ...
    (microsoft.public.excel.programming)
  • Re: Go back to the previous drive, folder, or Internet location
    ... I found a way to make the hyperlink work (I don't give up ... That worked (in Acrobat). ... >The problem is because of how PDF handles the Office ... >set up a custom settings file that tells PDF to keep the ...
    (microsoft.public.powerpoint)

Loading