← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 376456] Re: Report : Page number font is hard coded in pdf renderer

 

** Changed in: openobject-server
       Status: Confirmed => Won't Fix

** Changed in: openobject-server
   Importance: Low => Wishlist

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/376456

Title:
  Report : Page number font is hard coded in pdf renderer

Status in OpenObject Server:
  Won't Fix

Bug description:
  Proposed patch

--- trml2pdf.py
+++ trml2pdf.py	(working copy)
@@ -71,8 +71,9 @@
 
 class PageCount(platypus.Flowable):
     def draw(self):
+        self.canv.saveState()
         self.canv.beginForm("pageCount")
-        self.canv.setFont("Helvetica", utils.unit_get(str(8)))
+        self.canv.restoreState()
         self.canv.drawString(0, 0, str(self.canv.getPageNumber()))
         self.canv.endForm()