[reportlab-users] using images as bullets
Robin Becker
robin at reportlab.com
Mon Aug 15 04:58:10 EDT 2005
Nicholas Wieland wrote:
> - Britt Hibbert :
>
>> Hi,
>>
>> Does anyone have any experience using an image as a bullet when
>> bulleting a list ( basically a list of Paragraph objects) ? If so,
>> any recommendations on simple methods of doing this would be greatly
>> appreciated.
>
>
> Well, I've posted a ton of silly questions in the last few weeks on RL, so
> take my "advice" with a truckload of salt :p
> I'd suggest to subclass the Paragraph flowable, adding an argument to
> the initializer with the image you want to use.
> Then in the draw method you can use your image as you like, adding extra
> padding to the paragraph itself and drawinng the image where you like.
> Never tryied with Paragraph, but this is usually what I try when I want to
> personalize a flowable.
>
> HTH,
> ngw
That's probably good advice. We don't currently have any way to embed non
character boxes etc inside standard paragraphs.
--
Robin Becker
More information about the reportlab-users
mailing list