Example #1
0
    def __str__(self):
        s = "%d,%d," % (self.line, self.xoff)

        if self.align == util.ALIGN_LEFT:
            s += "l"
        elif self.align == util.ALIGN_CENTER:
            s += "c"
        else:
            s += "r"

        s += util.bools2flags("biu", self.isBold, self.isItalic,
                              self.isUnderlined)

        s += ",,%s" % self.text

        return util.toUTF8(s)
Example #2
0
    def __str__(self):
        s = u"%d,%d," % (self.line, self.xoff)

        if self.align == util.ALIGN_LEFT:
            s += "l"
        elif self.align == util.ALIGN_CENTER:
            s += "c"
        else:
            s += "r"

        s += util.bools2flags("biu", self.isBold, self.isItalic,
                              self.isUnderlined)

        s += u",,%s" % self.text

        return s
Example #3
0
    def __str__(self):
        s = "%f,%f,%d," % (self.x, self.y, self.size)

        s += util.bools2flags("crbiu", self.isCentered, self.isRightJustified, self.isBold,
                               self.isItalic, self.isUnderlined)
        s += ","

        if self.font == pml.COURIER:
            s += "Courier"
        elif self.font == pml.HELVETICA:
            s += "Helvetica"
        else:
            s += "Times"

        s += ",,%s" % util.escapeStrings(self.items)

        return util.toUTF8(s)
Example #4
0
    def __str__(self):
        s = "%f,%f,%d," % (self.x, self.y, self.size)

        s += util.bools2flags("crbiu", self.isCentered, self.isRightJustified,
                              self.isBold, self.isItalic, self.isUnderlined)
        s += ","

        if self.font == pml.COURIER:
            s += "Courier"
        elif self.font == pml.HELVETICA:
            s += "Helvetica"
        else:
            s += "Times"

        s += ",,%s" % util.escapeStrings(self.items)

        return util.toUTF8(s)
Example #5
0
    def __str__(self):
        s = "%f,%f,%d," % (self.x, self.y, self.size)

        s += util.bools2flags("cbiu", self.isCentered, self.isBold,
                               self.isItalic, self.isUnderlined)
        s += ","

        if self.font == pml.COURIER:
            s += "Courier"
        elif self.font == pml.HELVETICA:
            s += "Helvetica"
        else:
            s += "Times"

        s += ",,%s" % self.text

        return util.toUTF8(s)