src/reportlab/platypus/doctemplate.py
changeset 4183 66b0c5b63b07
parent 4145 f14cb807aa3d
child 4184 4e8fc7fc7092
--- a/src/reportlab/platypus/doctemplate.py	Mon Apr 13 12:34:24 2015 +0100
+++ b/src/reportlab/platypus/doctemplate.py	Wed Apr 15 14:43:00 2015 +0100
@@ -450,6 +450,7 @@
                     'encrypt': None,
                     'cropMarks': None,
                     'enforceColorSpace': None,
+                    'displayDocTitle': None,
                     }
     _invalidInitArgs = ()
     _firstPageTemplateIndex = 0
@@ -864,6 +865,8 @@
         self.canv.setSubject(self.subject)
         self.canv.setCreator(self.creator)
         self.canv.setKeywords(self.keywords)
+        if self.displayDocTitle is not None:
+            self.canv.setViewerPreference('DisplayDocTitle',['false','true'][self.displayDocTitle])
 
         if self._onPage:
             self.canv.setPageCallBack(self._onPage)