Added PDF file support to the python converter backend via ghostscript

This commit is contained in:
Roberto Rosario
2011-07-19 20:55:08 -04:00
parent 57fed7608a
commit 8a017e2af0
7 changed files with 137 additions and 55 deletions

View File

@@ -4,3 +4,10 @@ class AlreadyQueued(Exception):
class TesseractError(Exception):
pass
class UnpaperError(Exception):
"""
Raised by unpaper
"""
pass

View File

@@ -20,5 +20,6 @@ QUEUEDOCUMENT_STATE_CHOICES = (
(QUEUEDOCUMENT_STATE_ERROR, _(u'error')),
)
DEFAULT_OCR_FILE_FORMAT = u'tif'
UNPAPER_FILE_FORMAT = u'pnm'
DEFAULT_OCR_FILE_FORMAT = u'tiff'
DEFAULT_OCR_FILE_EXTENSION = u'tif'
UNPAPER_FILE_FORMAT = u'ppm'