src/reportlab/platypus/doctemplate.py
changeset 3040 cb548ffb442d
parent 3031 6f90e7668adb
child 3048 3ff2383916b9
--- a/src/reportlab/platypus/doctemplate.py	Tue Jan 06 13:12:45 2009 +0000
+++ b/src/reportlab/platypus/doctemplate.py	Wed Jan 07 15:03:42 2009 +0000
@@ -340,7 +340,8 @@
                     'pageCompression':None,
                     '_pageBreakQuick':1,
                     'rotation':0,
-                    '_debug':0}
+                    '_debug':0,
+                    'encrypt': None}
     _invalidInitArgs = ()
     _firstPageTemplateIndex = 0
 
@@ -716,6 +717,8 @@
                                 pagesize=self.pagesize,
                                 invariant=self.invariant,
                                 pageCompression=self.pageCompression)
+ 
+        getattr(self.canv,'setencrypt',lambda x: None)(self.encrypt)
 
         self.canv.setAuthor(self.author)
         self.canv.setTitle(self.title)