scott1028 / pyfpdf

Automatically exported from code.google.com/p/pyfpdf
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Template.split_multicell push data before FPDF.add_page called #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. test invoice.py

What is the expected output? What do you see instead?
  PDF with 3 pages
but got 
  RuntimeError: FPDF error: No page open, you need to call add_page() first
  (introduced in rev 81f7f9d356e6)

Template.split_multicell push data before FPDF.add_page called

Original issue reported on code.google.com by romiq...@gmail.com on 5 Feb 2014 at 5:54

GoogleCodeExporter commented 9 years ago
I think it does not push data, it just calculates the font metric and string 
width to split the text.

I'll think how to separate that logic, or the decorator should be modified

Original comment by reingart@gmail.com on 5 Feb 2014 at 6:04

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 68db9dd65124.

Original comment by reingart@gmail.com on 5 Feb 2014 at 6:16