Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 45ae980988 | |||
| 215e5ea2a5 |
@@ -4,6 +4,13 @@ Release History
|
||||
master
|
||||
------
|
||||
|
||||
0.7.1 (2019-01-06)
|
||||
------------------
|
||||
|
||||
**Bugfixes**
|
||||
|
||||
* Move ghostscript import to inside the function so Anaconda builds don't fail.
|
||||
|
||||
0.7.0 (2019-01-05)
|
||||
------------------
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
VERSION = (0, 7, 0)
|
||||
VERSION = (0, 7, 1)
|
||||
PRERELEASE = None # alpha, beta or rc
|
||||
REVISION = None
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ import pandas as pd
|
||||
|
||||
from .base import BaseParser
|
||||
from ..core import Table
|
||||
from ..ext.ghostscript import Ghostscript
|
||||
from ..utils import (scale_image, scale_pdf, segments_in_bbox, text_in_bbox,
|
||||
merge_close_lines, get_table_index, compute_accuracy,
|
||||
compute_whitespace)
|
||||
@@ -184,6 +183,8 @@ class Lattice(BaseParser):
|
||||
return t
|
||||
|
||||
def _generate_image(self):
|
||||
from ..ext.ghostscript import Ghostscript
|
||||
|
||||
self.imagename = ''.join([self.rootname, '.png'])
|
||||
gs_call = '-q -sDEVICE=png16m -o {} -r300 {}'.format(
|
||||
self.imagename, self.filename)
|
||||
|
||||
Reference in New Issue
Block a user