Re: Reportlab and Barcodes

2005-02-10 Thread Josh
Damjan, Code39 here refers to part of the Barcode Extensions available to Reportlabs. It can be imported as such from reportlab.extensions.barcode import code39 Josh -- http://mail.python.org/mailman/listinfo/python-list

Re: Reportlab and Barcodes

2005-02-10 Thread Jaime Wyant
That looks cleaner than mine. I had to do this -> # Register the barcode true-type-font # Don't want to push the font out to everyone in the office... from reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.ttfonts import TTFont pdfmetrics.registerFont( TTFont( 'barcode', r'c:\inetpub\www

Re: Reportlab and Barcodes

2005-02-09 Thread Damjan
> One of the users on the Reportlabs mailing list was kinda enough to > offer me the solution.. A simple call to the drawOn function, e.g.: > > bc = code39.Standard39("123",xdim = .015*inch) whats code39 in this example? > x = 6*inch > y = -5*inch > bc.drawOn(canvas,x,y) -- damjan -- http://m

Re: Reportlab and Barcodes

2005-02-09 Thread Josh
One of the users on the Reportlabs mailing list was kinda enough to offer me the solution.. A simple call to the drawOn function, e.g.: bc = code39.Standard39("123",xdim = .015*inch) x = 6*inch y = -5*inch bc.drawOn(canvas,x,y) -- http://mail.python.org/mailman/listinfo/python-list

Re: Reportlab and Barcodes

2005-02-09 Thread Josh
Benji, I have used those very same fonts before and they work great, but I'm trying to get away with using straight Python to accomplish this, especially since the program will most likely be used on both Linux and Windows. Josh -- http://mail.python.org/mailman/listinfo/python-list

Re: Reportlab and Barcodes

2005-02-09 Thread Benji York
Josh wrote: I need someone to explain to me how to output a Code39 barcode to a Reportlab PDF. This may not help you directly, but I've made use of it in the past: a very nice and totally free 3 of 9 TrueType font. http://www.barcodesinc.com/free-barcode-font/ -- Benji -- http://mail.python.org/

Re: Reportlab and Barcodes

2005-02-09 Thread Neil Benn
Josh wrote: Hi All, I need someone to explain to me how to output a Code39 barcode to a Reportlab PDF. 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 w