Beispiel #1
0
    def processPDF(self, file, writer, context, registry, bbox):
        bbox += self.bbox()

        mapline = self.font.getMAPline(writer.getfontmap())
        font = mapline.getfont()
        text = font.text_pt(self.x_pt, self.y_pt, self.charcodes, self.size_pt, decoding=mapline.getencoding(), slant=mapline.slant, ignorebbox=True)
        text.processPDF(file, writer, context, registry, bbox)
Beispiel #2
0
 def _text(self, writer):
     if self.fontmap is not None:
         mapline = self.font.getMAPline(self.fontmap)
     else:
         mapline = self.font.getMAPline(writer.getfontmap())
     font = mapline.getfont()
     return font.text_pt(self.x_pt, self.y_pt, self.charcodes, self.size_pt, decoding=mapline.getencoding(), slant=mapline.slant, ignorebbox=True)
Beispiel #3
0
    def processPDF(self, file, writer, context, registry, bbox):
        bbox += self.bbox()

        mapline = self.font.getMAPline(writer.getfontmap())
        font = mapline.getfont()
        text = font.text_pt(self.x_pt,
                            self.y_pt,
                            self.charcodes,
                            self.size_pt,
                            decoding=mapline.getencoding(),
                            slant=mapline.slant,
                            ignorebbox=True)
        text.processPDF(file, writer, context, registry, bbox)