[reportlab-users] Printing Problem

Robin Becker reportlab-users@reportlab.com
Tue, 28 Oct 2003 14:38:11 +0000


In article <200310281508.13014.christian.klinger@econtec.de>, Christian
Klinger <christian.klinger@econtec.de> writes
>Hello List
>
>I'm a Newbie in Reportlab
>
>This is my " simple example" Code

without knowing exactly what #Site 1 & #Site 2 do it's fairly hard to be
sure. My version certainly produces two pages.

###########
from reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import  A4
from reportlab.lib.units import inch,cm
c = canvas.Canvas("twosites.pdf",pagesize=A4)
c.drawString(0,100,'#Site 1')
c.showPage()
c.drawString(0,100,'#Site 2')
c.showPage
c.save()
###########
>---------------------------------------------------------
>from reportlab.pdfgen import canvas
>from reportlab.lib.pagesizes import  A4
>from reportlab.lib.units import inch,cm
>....
>....
>c = canvas.Canvas("fn",pagesize=A4)
>...
>#Site 1
>...
>c.showPage()
>...
>#Site 2
>...
>c.showPage
>c.save()
>----------------------------------------------------------
>
>This works fine! But if i print this in my Acrobat Reader then I got these two 
>Sites in one on the paper!
>
>Does anyone know the solution of this Porblem!
>
>thx christian
-- 
Robin Becker