[reportlab-users] Custom page lengths
Peter Cock
p.j.a.cock at googlemail.com
Wed Apr 13 03:02:08 EDT 2016
On Wed, Apr 13, 2016 at 12:40 AM, Glenn Linderman <v+python at g.nevcal.com> wrote:
> On 4/12/2016 9:55 AM, Peter Cock via reportlab-users wrote:
>>
>> Essentially I just set the page size based on the data - knowing how the
>> graph would be constructed and therefore how much space I needed.
>> However, I was using drawing primitives etc so this may not make sense
>> in your context Glenn?
>>
>
> I'm (presently) using flowables... and don't know the overall length of the
> page before I start, it partly depends on the actual textual content.
>
> One thought I had was to generate the document once, "somehow" gather
> statistics from the Page Breaks about the length of the page content, and
> then generate it again, knowing the needed page sizes.
I understand - predicting the required size of text data is much harder -
I was working on single page figures where I could predict the required
size size quite straightforwardly (essentially data length * scale + margins).
Peter
More information about the reportlab-users
mailing list