[Pkg-privacy-commits] [mat] 40/68: Add some resources about why we're using python-pdfrw

Sascha Steinbiss sascha at steinbiss.name
Sun Jan 3 12:32:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

sascha-guest pushed a commit to branch master
in repository mat.

commit 1be8f43ec23232d2c8446b9db6c5dd6ce84be512
Author: jvoisin <julien.voisin at dustri.org>
Date:   Sat Dec 5 16:51:37 2015 +0100

    Add some resources about why we're using python-pdfrw
---
 libmat/office.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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):
             return False
 
         try:
-            import pdfrw  # For now, poppler cannot write meta, so we must use pdfrw
+            # For now, cairo cannot write meta, so we must use pdfrw
+            # See the realted thread: http://lists.cairographics.org/archives/cairo/2007-September/011466.html
+            import pdfrw
 
             logging.debug('Removing %s\'s superficial metadata', self.filename)
             trailer = pdfrw.PdfReader(self.output)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git



More information about the Pkg-privacy-commits mailing list