Re: Acrobat DLL Exception (Transforming pdf to tif)



Hi,
Please install the PDF SDK and normally during the installation process
itself it will register the dll.

Once the installation is complete check for the following entries in registry:

HKEY_CLASSES_ROOT\AcroExch.App
HKEY_CLASSES_ROOT\AcroExch.App.1
HKEY_CLASSES_ROOT\AcroExch.AVDoc
HKEY_CLASSES_ROOT\AcroExch.Document

regards,
Joy

"Mauro" wrote:

Could you be more specific?
I can't understand what do I have to search and how can I locate the
file. It's in the Acrobat program directory?

Thank you.

On 27 Mag, 12:35, Joy <J...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
Do a search on your local system.

regards,
Joy

"Mauro" wrote:
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: Resource assembly missing?
    ... Either CAB installation was done incorrectly or device does ... Dim ws As HttpWebResponse = CType, ... Dim n As Integer = str.Read(inBuf, bytesRead, bytesToRead) ...
    (microsoft.public.dotnet.framework.compactframework)
  • 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: Com/ActiveX component to use on HTML page with javascript
    ... If I change the security settings for my IE instance, ... You can do your own thing, you can register your controls from ... > within the installation process. ...
    (microsoft.public.dotnet.framework)
  • Re: product key/activation
    ... He did not "Register" the software because he didn't have my personal ... Your system thinks it needs to validate the key it's been given. ... where you are told you need to activate your installation. ... cloned hard drives when-ever I perform drive transplants or want to ...
    (microsoft.public.windowsxp.setup_deployment)