diff --git a/camelot/parsers/lattice.py b/camelot/parsers/lattice.py index 3f2c0e9..5469fac 100644 --- a/camelot/parsers/lattice.py +++ b/camelot/parsers/lattice.py @@ -211,7 +211,7 @@ class Lattice(BaseParser): from ..ext.ghostscript import Ghostscript self.imagename = "".join([self.rootname, ".png"]) - gs_call = "-q -sDEVICE=png16m -o {} -r900 {}".format( + gs_call = "-q -sDEVICE=png16m -o {} -r300 {}".format( self.imagename, self.filename ) gs_call = gs_call.encode().split() @@ -329,7 +329,6 @@ class Lattice(BaseParser): table = Table(cols, rows) # set table edges to True using ver+hor lines - table = table.set_edges(v_s, h_s, joint_tol=self.joint_tol) # set table border edges to True table = table.set_border() diff --git a/test.py b/test.py deleted file mode 100644 index fcfdc37..0000000 --- a/test.py +++ /dev/null @@ -1,9 +0,0 @@ -import camelot - - -tables = camelot.read_pdf("tests/files/foo_image.pdf", flavor="lattice_ocr") -print(tables[0].df) - -# camelot.plot(tables[0], kind="contour").show() -# camelot.plot(tables[0], kind="grid").show() -