def draw(self): # Add outline entry self.canv.bookmarkHorizontal(self.parent_id, 0, 0 + self.height) if self.canv.firstSect: self.canv.sectName = self.stext self.canv.firstSect = False if self.snum is not None: self.canv.sectNum = self.snum else: self.canv.sectNum = "" self.canv.addOutlineEntry(self.stext.encode('utf-8', 'replace'), self.parent_id.encode('utf-8', 'replace'), int(self.level), False) Paragraph.draw(self)
def draw(self): # Add outline entry self.canv.bookmarkHorizontal(self.parent_id,0,0+self.height) # self.section_header_depth is for Issue 391 if self.canv.firstSect and self.level < self.section_header_depth: self.canv.sectName = self.stext self.canv.firstSect=False if self.snum is not None: self.canv.sectNum = self.snum else: self.canv.sectNum = "" self.canv.addOutlineEntry(self.stext.encode('utf-8','replace'), self.parent_id.encode('utf-8','replace'), int(self.level), False) Paragraph.draw(self)
def draw(self): # Add outline entry self.canv.bookmarkHorizontal(self.parent_id,0,0+self.height) # self.section_header_depth is for Issue 391 if self.canv.firstSect and self.level < self.section_header_depth: self.canv.sectName = self.stext self.canv.firstSect=False if self.snum is not None: self.canv.sectNum = self.snum else: self.canv.sectNum = "" self.canv.addOutlineEntry(self.stext.encode('utf-8','replace'), self.parent_id.encode('utf-8','replace'), int(self.level), False) Paragraph.draw(self) #ADD BY FAO if self.style.__dict__['underline'] == 1: self.canv.setLineWidth(.3) self.canv.setStrokeColor(self.style.textColor) self.canv.line(0,0, self._frame._width,0)
def draw(self): # Add outline entry self.canv.bookmarkHorizontal(self.parent_id, 0, 0 + self.height) # self.section_header_depth is for Issue 391 if self.canv.firstSect and self.level < self.section_header_depth: self.canv.sectName = self.stext self.canv.firstSect = False if self.snum is not None: self.canv.sectNum = self.snum else: self.canv.sectNum = "" self.canv.addOutlineEntry(self.stext.encode('utf-8', 'replace'), self.parent_id.encode('utf-8', 'replace'), int(self.level), False) Paragraph.draw(self) #ADD BY FAO if self.style.__dict__['underline'] == 1: self.canv.setLineWidth(.3) self.canv.setStrokeColor(self.style.textColor) self.canv.line(0, 0, self._frame._width, 0)