summaryrefslogtreecommitdiff
path: root/MAT/mat.py
diff options
context:
space:
mode:
authorjvoisin2012-12-19 21:17:02 +0100
committerjvoisin2012-12-19 21:17:02 +0100
commitb0b30b8ed51d6de3671c0b133edd6f7f3230282b (patch)
treee28a33c1c1eb0e3dfa81d0a21c586a003db54b2a /MAT/mat.py
parent99f982f844aa75cfd895e16bc6f3dcac778e31ac (diff)
Preliminary support of producted pdf quality choice
Diffstat (limited to 'MAT/mat.py')
-rw-r--r--MAT/mat.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/MAT/mat.py b/MAT/mat.py
index 4c12333..84f26f2 100644
--- a/MAT/mat.py
+++ b/MAT/mat.py
@@ -102,7 +102,7 @@ def secure_remove(filename):
102 logging.error('Unable to remove %s' % filename) 102 logging.error('Unable to remove %s' % filename)
103 103
104 104
105def create_class_file(name, backup, add2archive): 105def create_class_file(name, backup, **kwargs):
106 ''' 106 '''
107 return a $FILETYPEStripper() class, 107 return a $FILETYPEStripper() class,
108 corresponding to the filetype of the given file 108 corresponding to the filetype of the given file
@@ -149,4 +149,7 @@ def create_class_file(name, backup, add2archive):
149 logging.info('Don\'t have stripper for %s format' % mime) 149 logging.info('Don\'t have stripper for %s format' % mime)
150 return None 150 return None
151 151
152 return stripper_class(filename, parser, mime, backup, add2archive) 152 if mime.endswith('pdf') and mime.startswith('application/'):
153 return stripper_class(filename, parser, mime, backup, **kwargs)
154
155 return stripper_class(filename, parser, mime, backup, **kwargs)