make pdf for sphinx-build fails with LayoutError in reportlab/platypus/doctemplate.py
See original GitHub issueI can build each individual .rst file using “rst2pdf <file>.rst” and get .pdf file. However when running “make pdf” I get:
[ERROR] pdfbuilder.py:130 More than 10 pages generated without content - halting layout. Likely that a flowable is too large for any frame.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/rst2pdf/pdfbuilder.py", line 127, in write
docwriter.write(doctree, destination)
File "/usr/local/lib/python2.7/dist-packages/docutils/writers/__init__.py", line 80, in write
self.translate()
File "/usr/local/lib/python2.7/dist-packages/rst2pdf/pdfbuilder.py", line 621, in translate
compressed=self.compressed)
File "/usr/local/lib/python2.7/dist-packages/rst2pdf/createpdf.py", line 653, in createPdf
pdfdoc.multiBuild(elements)
File "/usr/local/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 1125, in multiBuild
self.build(tempStory, **buildKwds)
File "/usr/local/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 1038, in build
self.handle_flowable(flowables)
File "/usr/local/lib/python2.7/dist-packages/rst2pdf/createpdf.py", line 801, in handle_flowable
self.handle_frameEnd()
File "/usr/local/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 689, in handle_frameEnd
self.handle_pageEnd()
File "/usr/local/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 632, in handle_pageEnd
raise LayoutError(ident)
LayoutError: More than 10 pages generated without content - halting layout. Likely that a flowable is too large for any frame.
FAILED
Where should I look, or what should I try next? Versions:
$ sphinx-build --version
sphinx-build 1.7.6
# ls /usr/local/lib/python2.7/dist-packages/{rst2pdf,reportlab}*.dist-info
/usr/local/lib/python2.7/dist-packages/reportlab-3.5.4.dist-info:
INSTALLER METADATA RECORD top_level.txt WHEEL
/usr/local/lib/python2.7/dist-packages/rst2pdf-0.93.dev_r0.dist-info:
dependency_links.txt entry_points.txt METADATA RECORD WHEEL
DESCRIPTION.rst INSTALLER metadata.json top_level.txt
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
while creating pdf for repaortlab layout error - Stack Overflow
I make a PDF(A4) size for it and got the error, while I enter code here make A3 for it the problem is...
Read more >Sphinx PDFs with Unicode - Read the Docs
By default Sphinx uses pdflatex , which does not have good support for Unicode characters and may make the PDF builder fail. To...
Read more >Create and Modify PDF Files in Python
In this tutorial, you'll explore the different ways of creating and modifying PDF files in Python. You'll learn how to read and extract...
Read more >Why am I getting the error message “Failed to Load PDF ...
Even if Adobe Acrobat Reader is already installed on your computer, if another program (like Chrome) tries to open the file you will...
Read more >Technical PDF Related Questions | Central District of California
Why am I receiving an Internal Server Error when e-filing a PDF document? ... How do you start the Adobe Acrobat Reader program...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Usually, “more than 10 pages generated without content” occurs when an image is too large and isn’t being scaled or there’s a really large block of text or a table that can’t fit onto one page or be wrapped.
In this case, as you can build each rst file, I’m confused! Maybe try building just 2 rst files with
make
and then add each rst file until you find which one it’s upset with?I have used
pdf_use_index = False
and still get the same error. I also tried to remove thewidth:
attribute in the img.Here is my error trace: