From 70f573bc078e6dd05b92f0fb3fdca983133afef2 Mon Sep 17 00:00:00 2001 From: Dale O'Brien Date: Tue, 29 May 2012 09:29:11 +1000 Subject: [PATCH] fixed _pisaAddFrame, ValueError: too many values to unpack. --- xhtml2pdf/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xhtml2pdf/context.py b/xhtml2pdf/context.py index 520fa334..027d79c8 100644 --- a/xhtml2pdf/context.py +++ b/xhtml2pdf/context.py @@ -278,7 +278,7 @@ def atPage(self, name, pseudopage, declarations): if not frameList: # print 999 log.warn(c.warning("missing explicit frame definition for content or just static frames")) - fname, static, border, x, y, w, h = self._pisaAddFrame(name, data, first=True, border=pageBorder, size=c.pageSize) + fname, static, border, x, y, w, h, data = self._pisaAddFrame(name, data, first=True, border=pageBorder, size=c.pageSize) x, y, w, h = getCoords(x, y, w, h, c.pageSize) if w <= 0 or h <= 0: log.warn(c.warning("Negative width or height of frame. Check @page definitions."))