Package: python-reportlab Version: 1.20debian-2 Severity: important Tags: patch
Hi! BaseDocTemplate (and all derived classes) do not calls setAuthor nor setTitle on its canvas (self.canv). A workaround can be, for example: template = BaseDocTemplate(...) def setTags(): template.canv.setAuthor(author) template.canv.setTitle(title) template.beforeDocument = setTags A fix could be to change the _startBuild function of BaseDocTemplate (reportlab/platypus/doctemplate.py:603) to the following: def _startBuild(self, filename=None, canvasmaker=canvas.Canvas): self._calc() self.canv = canvasmaker(filename or self.filename, pagesize=self.pagesize, invariant=self.invariant) if self.author: self.canv.setAuthor(self.author) if self.title: self.canv.setTitle(self.title) if self._onPage: self.canv.setPageCallBack(self._onPage) self.handle_documentBegin() Cya, Felipe. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (900, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-ck1 Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pt_BR.UTF-8) Versions of packages python-reportlab depends on: ii python 2.3.5-5 An interactive high-level object-o ii python-xml 0.8.4-1 XML tools for Python [dummy packag ii python2.3-reportlab 1.20debian-2 ReportLab library to create PDF do Versions of packages python-reportlab recommends: ii python-imaging 1.1.5-4 Python Imaging Library -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]