src/reportlab/platypus/doctemplate.py
branchfeature-accessibility
changeset 4529 0e81d462d3b9
parent 4502 86c084dcb3a2
child 4530 3f6cc4ae6211
--- a/src/reportlab/platypus/doctemplate.py	Tue Sep 24 12:38:18 2019 +0100
+++ b/src/reportlab/platypus/doctemplate.py	Thu Sep 26 13:43:11 2019 +0100
@@ -981,6 +981,7 @@
                             artBox = self.artBox,
                             trimBox = self.trimBox,
                             bleedBox = self.bleedBox,
+                            lang = self.lang,
                             )
 
         getattr(canv,'setEncrypt',lambda x: None)(self.encrypt)
@@ -994,8 +995,6 @@
         canv.setKeywords(self.keywords)
         if self.displayDocTitle is not None:
             canv.setViewerPreference('DisplayDocTitle',['false','true'][self.displayDocTitle])
-        if self.lang:
-            canv.setCatalogEntry('Lang',self.lang)
 
         if self._onPage:
             canv.setPageCallBack(self._onPage)