Hello! To parse my PDF with a particularly variable layout, I have to set up my table areas such that some table areas might result in no tables found. When this happens, you get the error seen in this Stack Overflow post here.
My current solution (not perfect, workaround at best) is to separate the pdf_read table area parse that may result in an empty table into its own call, and error handle it with a try_catch block. However, I think it would be reasonable to not error out if a particular table_area has no tables (maybe return None object?).
Hello! To parse my PDF with a particularly variable layout, I have to set up my table areas such that some table areas might result in no tables found. When this happens, you get the error seen in this Stack Overflow post here.
My current solution (not perfect, workaround at best) is to separate the
pdf_read
table area parse that may result in an empty table into its own call, and error handle it with atry_catch
block. However, I think it would be reasonable to not error out if a particulartable_area
has no tables (maybe returnNone
object?).