[reportlab-users] Paragraphs with images are too small

Tim Roberts timr at probo.com
Thu Jul 23 13:17:14 EDT 2009


Roberto Alsina wrote:

> This is a bug I reported in may and got no response, thought it would be ok to

> refresh it. I apologize if it's not.

>

> Here's a test case. What you will see is that the image in the second

> paragraph completely overlaps the first paragrah:

>


As far as I know, a paragraph in Platypus does not adjust its vertical
spacing to compensate for inline images. Your image will be drawn with
its bottom edge on the baseline of the current line, but the baseline is
not moved to make room for that image. If the image is very tall, it
will overlap the stuff above it. Thus, the <img> tag is mostly useful
for icons and other small inclusions.

If you need a large out-of-line image, perhaps you should use the Figure
flowable instead.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the reportlab-users mailing list