[reportlab-users] simpledoctemlpate

John Pywtorak reportlab-users@reportlab.com
Tue, 6 Apr 2004 10:12:34 -0700


I think you are going to have to work directly with the canvas and use the=
=20
primatives that platypus builds on like drawtext (? I think that is the=20
name), etc.

Another option is to implement routines for the new page events.  Here you =
get=20
the doc and canvas objects in which you can draw text anywhere you want.  I=
=20
use it to draw page number and title on a page by page basis.

You could however extend SimpleDocTemplate and overide the draw method I wo=
uld=20
think.

Hope this gets you headed in the right direction.

Johnny P

On Tuesday 06 April 2004 02:44 am, =EF=BF=BDffffca=EF=BF=BDffffbf=EF=BF=BDf=
fffb7=EF=BF=BDffffbc =EF=BF=BDffffcd=EF=BF=BDfffff5=20
wrote:
> Hi:
>   How can I realize this:
>      doc =3D SimpleDocTemplate('e:/page4.pdf')
>     story =3D []
>     story.append(String(x,y,'ddd'))
>     doc.build(story)
>    I know that is wrong ,but I want to draw strings with x,y in=20
> simpledoctemplate,what should i do? thanks
>
>
>
> ---------------------------------
> Do You Yahoo!?
> =E6=83=A0=E6=99=AETT=E6=B8=B8=E6=88=8F=E5=89=A7=EF=BC=8C=E7=8E=A9=E6=B8=
=B8=E6=88=8F=EF=BC=8C=E4=B8=AD=E5=A4=A7=E5=A5=96=EF=BC=81