diff options
| author | jvoisin | 2015-12-05 16:51:37 +0100 |
|---|---|---|
| committer | jvoisin | 2015-12-05 16:51:37 +0100 |
| commit | 1be8f43ec23232d2c8446b9db6c5dd6ce84be512 (patch) | |
| tree | 7dbf536b0c31305c6e1ea2df2856788ec0115f73 /libmat/office.py | |
| parent | 81bf41933551f6bebf5a0c6a86e47af2e597b653 (diff) | |
Add some resources about why we're using python-pdfrw
Diffstat (limited to 'libmat/office.py')
| -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) |
