• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Could not locate a type library matching 'Acrobat'

New Here ,
Nov 02, 2020 Nov 02, 2020

Copy link to clipboard

Copied

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)
TOPICS
Edit and convert PDFs , General troubleshooting , Windows

Views

584

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 02, 2020 Nov 02, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 02, 2020 Nov 02, 2020

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 02, 2020 Nov 02, 2020

Copy link to clipboard

Copied

This requires Acrobat Pro.

Acrobat Reader can't.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 03, 2020 Nov 03, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines