Skip to main content
Participant
Nov 2, 2020 9:43 PM UTC
Question

Could not locate a type library matching 'Acrobat'

I try to use pdf to excel function in Acrobat Reader DC, but I got an error of:

Could not locate a type library matching 'Acrobat'

 Here is my code to connect to Adobe:

 excel_file = company_name + '.xlsx'
        ERRORS_BAD_CONTEXT.append(winerror.E_NOTIMPL)
        src=os.path.abspath(path_to_pdf)
        win32com.client.makepy.GenerateFromTypeLibSpec('Acrobat')
        adobe = win32com.client.DispatchEx('AcroExch.App')
        avDoc = win32com.client.DispatchEx('AcroExch.AVDoc')
        avDoc.Open(src, src)
        pdDoc = avDoc.GetPDDoc()
        jObject = pdDoc.GetJSObject()
        jObject.SaveAs(excel_file, "com.adobe.acrobat.xlsx")
        avDoc.Close(True)
This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

JR Boulay
Community Expert
Community Expert
Nov 3, 2020 7:43 AM UTC

This requires Acrobat Pro.

Acrobat Reader can't.

Translate
Acrobate du PDF, InDesigner et Photoshopographe
Bernd Alheit
Community Expert
Community Expert
Nov 3, 2020 8:56 AM UTC

This doesn't requires Acrobat Pro! It is possible with Acrobat Standard or Pro.

Translate
Legend
Nov 3, 2020 7:34 AM UTC

Be aware that "Acrobat" is a paid for product. "Acrobat Reader" is a light version, not for developers to automate. The automation exists to help sell Acrobat subscriptions.

Translate
Bernd Alheit
Community Expert
Community Expert
Nov 3, 2020 6:59 AM UTC

Not possible with Acrobat Reader. You need a installation of Adobe Acrobat.

Translate