From: René B. <rba...@mu...> - 2017-05-16 09:33:32
|
Le Tue, 16 May 2017 04:39:38 +0200, André Wobst <wo...@us...> a écrit : > Hi René, > > change "brochure.append(page)" to > "brochure.append(document.page(page))". > Jes, its not the first time I walked into this trap. > A canvas is not a page, and cannot be inserted into a document > without wrapping it in a page object. > > The "writePDFfile" and similar methods of a canvas are just > convenience methods to directly save a canvas into a file for a > rather common use case. When creating documents yourself (for example > for multiple page documents), you need to properly (i.e. manually) > create pages and insert those into a document. Its just the way it > is ... > > Best, > > > André > rené -- René Bastian www.pythoneon.org |