My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 129: reportlab error: Flowable <Paragraph... too large
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jun 16
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by tinodb, Jun 13, 2009
What steps will reproduce the problem?
1. run the appended test.txt > should process normally
2. append:
.. raw:: pdf

        PageBreak

after the contents directive
3. run > gives the following error:

Traceback (most recent call last):
  File "/home/tinodb/bin/rst2pdf", line 8, in <module>
    load_entry_point('rst2pdf==0.10.1.dev-r668', 'console_scripts', 
'rst2pdf')()
  File "/home/tinodb/lib/python2.5/rst2pdf-0.10.1.dev_r668-
py2.5.egg/rst2pdf/createpdf.py", line 1596, in main
    compressed=options.compressed)
  File "/home/tinodb/lib/python2.5/rst2pdf-0.10.1.dev_r668-
py2.5.egg/rst2pdf/createpdf.py", line 1253, in createPdf
    pdfdoc.multiBuild(elements)
  File "/home/tinodb/lib/python2.5/Reportlab-2.1-
py2.5.egg/reportlab/platypus/doctemplate.py", line 813, in multiBuild
    self.build(tempStory, filename, canvasmaker)
  File "/home/tinodb/lib/python2.5/Reportlab-2.1-
py2.5.egg/reportlab/platypus/doctemplate.py", line 740, in build
    self.handle_flowable(flowables)
  File "/home/tinodb/lib/python2.5/Reportlab-2.1-
py2.5.egg/reportlab/platypus/doctemplate.py", line 671, in handle_flowable
    raise LayoutError(ident)
reportlab.platypus.doctemplate.LayoutError: Flowable <Paragraph at 
0x8ef6ecc>Passingen too large on page 5

What version of the product are you using? On what operating system?
0.10.1.dev-r668 on Linux

Please provide any additional information below.
It has something to do with the footer directive, the contents directive, 
the PageBreak parameter to the raw:: pdf directive and the subtitle. 
Removing one of the three eliminates the error. The text below also has 
something to do with it. When I remove about 50 lines, the error disappears 
as well.


test.txt
12.0 KB   Download
Comment 1 by roberto.alsina, Jun 13, 2009
I can't reproduce it. I added the page break and it produced the attached PDF.

What reportlab and/or wordaxe versions are you using? I tested reportlab 2.3 and 
SVN-3496, both with wordaxe 0.3.2.

Are you using any custom stylesheets? What's the command line you are using?

It looks like I broke page numbers in footers, though.
test_issue_129.pdf
58.1 KB   Download
Comment 2 by tinodb, Jun 16, 2009
It was without Wordaxe (as it was in Dutch) and with Reportlab 2.1. So that probably
explains it. Although I can't test it with a newer version of reportlab, as gcc
failes to compile something, both on my Mac (10.4) as on my Linux server (webfaction)..

Will try again sometime.

Page numbers did seem to be broken, yes.

Tino
Comment 3 by roberto.alsina, Jun 16, 2009
The page numbers is fixed now. I will try to make some testing with RL 2.1, which I 
must confess I have not done in a long time...
Comment 4 by roberto.alsina, Jun 16, 2009
Sort-of-fixed in r672.

It looks like a layout bug in RL 2.1 when using KeepTogether so that you don't get 
orphan titles at the end of pages.

So now you can get those with 2.1, in which case you will have to add manual page 
breaks, which will suck.

So, also added a "your reportlab version is too old" warning ;-)

Please see if it works correctly now and mark the issue as verified.
Status: Fixed
Comment 5 by tinodb, Jun 17, 2009
It doesn't throw an error now. But there is no table of contents, instead it displays:

Placeholder for table of contents 0 

Comment 6 by roberto.alsina, Jun 17, 2009
Gack. My mistake. Try again in r675
Comment 7 by tinodb, Jun 17, 2009
Nope, now the error is back...:

$rst2pdf test.txt
[WARNING] createpdf.py:1621 You are using Reportlab version 2.1. The suggested
version is 2.3 or higher
Traceback (most recent call last):
  File "/home/tinodb/bin/rst2pdf", line 8, in <module>
    load_entry_point('rst2pdf==0.10.1.dev-r679', 'console_scripts', 'rst2pdf')()
  File
"/home/tinodb/lib/python2.5/rst2pdf-0.10.1.dev_r679-py2.5.egg/rst2pdf/createpdf.py",
line 1641, in main
    compressed=options.compressed)
  File
"/home/tinodb/lib/python2.5/rst2pdf-0.10.1.dev_r679-py2.5.egg/rst2pdf/createpdf.py",
line 1292, in createPdf
    pdfdoc.multiBuild(elements)
  File
"/home/tinodb/lib/python2.5/Reportlab-2.1-py2.5.egg/reportlab/platypus/doctemplate.py",
line 813, in multiBuild
    self.build(tempStory, filename, canvasmaker)
  File
"/home/tinodb/lib/python2.5/Reportlab-2.1-py2.5.egg/reportlab/platypus/doctemplate.py",
line 740, in build
    self.handle_flowable(flowables)
  File
"/home/tinodb/lib/python2.5/Reportlab-2.1-py2.5.egg/reportlab/platypus/doctemplate.py",
line 671, in handle_flowable
    raise LayoutError(ident)
reportlab.platypus.doctemplate.LayoutError: Flowable <Paragraph at
0x9affa6c>Passingen too large on page 5

$ rst2pdf --version
0.10.1.dev-r679
Comment 8 by roberto.alsina, Jun 17, 2009
Ugh, sorry, not really my smartest day.
Try r680, please.
Comment 9 by tinodb, Jun 17, 2009
It now works, with orphaned headers indeed :D

Thanks a lot!
Sign in to add a comment

Hosted by Google Code