[reportlab-users] Graphics and titles

Andy Robinson andy at reportlab.com
Wed Jul 6 04:34:28 EDT 2005


> It does not seem to be in platypus, pdfgen or pdfbase.
> 
> Or do you mean PDFString?
> 

reportlab.graphics.shapes.String:

class String(Shape):
    """Not checked against the spec, just a way to make something work.
    Can be anchored left, middle or end."""

    # to do.
    _attrMap = AttrMap(
        x = AttrMapValue(isNumber),
        y = AttrMapValue(isNumber),
        text = AttrMapValue(isString),
        fontName = AttrMapValue(None),
        fontSize = AttrMapValue(isNumber),
        fillColor = AttrMapValue(isColorOrNone),
        textAnchor = AttrMapValue(isTextAnchor),
        )


When you said you were doign charts, I presumed using the
numerous Drawing and chart-related Shape objects in 
reportlab/graphics; 

If this is not the case and you are drawing your own with 
pdfgen, then you have a large new subpackage to explore.  
(it's been there for 4 years!)  The graphics guide and reference
are probably the starting point:

   http://www.reportlab.com/docs/graphguide.pdf
  http://www.reportlab.com/docs/graphics_reference.pdf



Best Regards,


Andy Robinson


More information about the reportlab-users mailing list