I would like to convert tables in PDF to Excel. I realize Adobe Acrobat Pro has this functionality - I would just like to program this because I have many files.
Subhobroto's reply in this post explains how to do this in python (just subbing xls for word), but it's for a Windows version of python. What would be the analogous way to connect to Adobe Acrobat using Python3 on a Mac?
def acrobat_extract_text(f_path, f_path_out, f_basename, f_ext):
avDoc = Dispatch("AcroExch.AVDoc") # this is the line I need to sub with a method from another module
# Open the input file (as a pdf)
ret = avDoc.Open(f_path, f_path)
assert(ret) # FIXME: Documentation says "-1 if the file was opened successfully, 0 otherwise", but this is a bool in practise?