[reportlab-users] a replicated canvas?

Jon Bradley shiftedpixels at gmail.com
Tue Sep 18 07:41:35 EDT 2007


Andy,

Thanks for the information... I hoped that was the case. I believe a
previous library I used did that ( FPDF). Can't be sure though.

I'm guessing it won't take too much testing to get an answer to my
questions. I figured it couldn't hurt to post on the list. Thanks!

cheers,

jon

On Sep 18, 2007, at 7:28 AM, Andy Robinson wrote:


> The "canvas" is the size of the page, so it's your job to move

> across or down as you loop, or perhaps have a function to do each

> layout and pass in its x-y origin.

>

> If you use drawImage, I think it's smart enough to realise the

> image is being reused. If it sees the same filename in the same

> document, it just uses a reference to the first one which it has

> read in. Normally images are stored outside of the page stream and

> referenced. (If you use drawInlineImage you can force it to bloat

> up the files as you fear)

>

> I am away from the source code on a Blackberry and going from

> memory, so please watch the file sizes and check!

>

> - Andy




More information about the reportlab-users mailing list