Re: Custom page lengths
Peter Cock via reportlab-users <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <CAKVJ-_5C9uA7Y+hK6Jj3gfATf6ZmvmRAAhQN_3REgAMBiHEJDA@mail.gmail.com> |
On Wed, Apr 13, 2016 at 12:40 AM, Glenn Linderman <[email protected]> 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