diff options
Diffstat (limited to 'libmat')
| -rw-r--r-- | libmat/office.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmat/office.py b/libmat/office.py index 47cd622..c3a9811 100644 --- a/libmat/office.py +++ b/libmat/office.py | |||
| @@ -167,7 +167,9 @@ class PdfStripper(parser.GenericParser): | |||
| 167 | return False | 167 | return False |
| 168 | 168 | ||
| 169 | try: | 169 | try: |
| 170 | import pdfrw # For now, poppler cannot write meta, so we must use pdfrw | 170 | # For now, cairo cannot write meta, so we must use pdfrw |
| 171 | # See the realted thread: http://lists.cairographics.org/archives/cairo/2007-September/011466.html | ||
| 172 | import pdfrw | ||
| 171 | 173 | ||
| 172 | logging.debug('Removing %s\'s superficial metadata', self.filename) | 174 | logging.debug('Removing %s\'s superficial metadata', self.filename) |
| 173 | trailer = pdfrw.PdfReader(self.output) | 175 | trailer = pdfrw.PdfReader(self.output) |
