Re: Acrobat DLL Exception (Transforming pdf to tif)



How can I find the path of the file to register?
I have Adobe Reader 8.1.2 without SDK now.

Thank you.

On 27 Mag, 11:56, Joy <J...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
You need to register the ActiveX component using the regsvr32.exe utility

regards,
Joy

"Mauro" wrote:
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=...

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

  • ASP: Get user login ID
    ... But when we register the dll on our web ... server, and call it from our ASP code, it generates an error. ... Dim lngCharsReturned As Long ...
    (microsoft.public.inetserver.iis.security)
  • RE: Problem Using VB.net Class Library DLL in VBScript
    ... In my project compile properties, I do have checked the 'Register for COM ... ' A creatable COM class must have a Public Sub New ... Dim strMyFormName As String = "Data Grid View" ...
    (microsoft.public.dotnet.languages.vb)
  • Re: What does this ClientScriptManager code do??
    ... If (Not cs.IsClientScriptBlockRegistered(cstype, csname2)) Then ... Dim cstext2 As New StringBuilder ... If that is correct it appears register should be done only once but the Add each time the page is loaded. ... The ClientScriptManager class is used to manage client-side scripts and add them to Web applications... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: vb 6.0 naar vb.net 2005
    ... The PC has to be able to read- write data to the plc and show it in the ... starting register and such also to the module). ... starting register and such is send to the dll aswell) the dll ... Dim handle, j As Integer ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Acrobat DLL Exception (Transforming pdf to tif)
    ... "Mauro" wrote: ... Dim PDDoc As Acrobat.CAcroPDDoc ... Dim JSObj As Object ...
    (microsoft.public.dotnet.languages.csharp)