Fix plot_text

This commit is contained in:
Vinayak Mehta
2018-09-23 11:45:20 +05:30
parent 3170a9689f
commit 71d91fbebd
4 changed files with 19 additions and 10 deletions
+1 -3
View File
@@ -1,6 +1,5 @@
import os
from ..core import Geometry
from ..utils import get_page_layout, get_text_objects
@@ -17,5 +16,4 @@ class BaseParser(object):
self.horizontal_text = get_text_objects(self.layout, ltype="lh")
self.vertical_text = get_text_objects(self.layout, ltype="lv")
self.pdf_width, self.pdf_height = self.dimensions
self.rootname, __ = os.path.splitext(self.filename)
self.g = Geometry()
self.rootname, __ = os.path.splitext(self.filename)