From: Maarten v. d. V. <m.h...@gm...> - 2020-05-07 13:01:55
|
Dear all, I wonder if you can help me. I would like to create multi page documents in Pyx. I am browsing through the documentation and the mailing list archive, but I am not able to connect all the pieces of information. I have tried following along: https://sourceforge.net/p/pyx/mailman/message/6193313/ <https://sourceforge.net/p/pyx/mailman/message/6193313/> c = canvas.canvas() c.text(0, 0, "Hello, world!") c.stroke(path.line(0, 0, 2, 0)) page = document.page(c, paperformat=paperformat.Letter) result = canvas.document(c) result.writePSfile("Whatever") But this gives me the error: AttributeError: 'Document' object has no attribute ‘page' Did the package change since this thread? (2007…) Is there a working example somewhere that I could use instead? Thanks, Maarten |