[reportlab-users] Barcodes

Uwe C. Schroeder uwe at oss4u.com
Wed Feb 9 11:17:29 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


a quick copy/paste. This might give you the idea.


    def drawBarCode(self,canvas):
        # draw the barcode at the end of each page
        if self.doc.barcode:
            barc=code39.Extended39(self.doc.barcode)
            x=(self.width/2) - (barc.width/2)
            # put the barcode on the lower margin
            # this might be not good for inkjet printers
            y=self.height
            barc.drawOn(canvas,x,y)



On Wednesday 09 February 2005 05:57 am, Joshua Cohen wrote:
> Hi All,
>
>
> I need someone to explain to me how to output a Code39 barcode to a
> Reportlab PDF using the barcodes extension. As far as I can tell, there is
> no means to do this with the Canvas object, and the demo that is included
> with the libraries is using the platypus Frame to place the barcode on the
> form. I do not wish to use this method. I'm guessing that it needs to be
> placed on the form as some type of graphic. It's obviously not going to
> work with the drawText method. Any ideas?
>
>
> Thanks
>
>
> Josh
>
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users

- -- 
	UC

- --
Open Source Solutions 4U, LLC	2570 Fleetwood Drive
Phone:  +1 650 872 2425		San Bruno, CA 94066
Cell:   +1 650 302 2405		United States
Fax:    +1 650 872 2417
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFCCjeZjqGXBvRToM4RArTKAKCgzQUuE25nkt5+Z/OceBE4sNaeQACaAzzx
UckJMZu28p4YLdfcnaM6v4g=
=pYjJ
-----END PGP SIGNATURE-----



More information about the reportlab-users mailing list