diff options
| author | jvoisin | 2012-12-19 21:17:02 +0100 |
|---|---|---|
| committer | jvoisin | 2012-12-19 21:17:02 +0100 |
| commit | b0b30b8ed51d6de3671c0b133edd6f7f3230282b (patch) | |
| tree | e28a33c1c1eb0e3dfa81d0a21c586a003db54b2a /MAT/mat.py | |
| parent | 99f982f844aa75cfd895e16bc6f3dcac778e31ac (diff) | |
Preliminary support of producted pdf quality choice
Diffstat (limited to 'MAT/mat.py')
| -rw-r--r-- | MAT/mat.py | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -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 | ||
| 105 | def create_class_file(name, backup, add2archive): | 105 | def 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) | ||
