[reportlab-users] Micr font advice in reportlab
Mike Driscoll
mike at pythonlibrary.org
Wed May 29 10:48:02 EDT 2013
Hi,
I posted about this issue a couple weeks ago and still haven't figured it
out, but I found some more information about the font. I am using a font
called MICRCheckPrixa. You can read about it here:
http://www.micre13b.com/MICRCheckPrixa.pdf
According to the spec, I should be able to use semi-colons to get one of
the funky MICR characters, however it seems to be getting eaten by
Reportlab somehow.
Here's my code snippet:
micr = '<font name="MICRCheckPrixa" style="regular" size=14>;%s; :%s:
%s</font>'
micr_line = micr % (self.check_data.check_number,
self.check_data.bank_routing_number,
self.check_data.bank_account_number)
The colons turn into the correct character, but the semi-colons end up
looking blank. I have attached a quick example code and its output. You can
see the colons have been transformed per the spec, but the semi-colons are
eaten. There's a demo version of the font that has both the characters (I
think), so if anyone has any ideas or solutions, I'm all ears.
I am running Python 2.6 on Windows 7.
--
-----------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20130529/d0c92f14/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: micr_test.py
Type: application/octet-stream
Size: 908 bytes
Desc: not available
Url : <http://two.pairlist.net/pipermail/reportlab-users/attachments/20130529/d0c92f14/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 17612 bytes
Desc: not available
Url : <http://two.pairlist.net/pipermail/reportlab-users/attachments/20130529/d0c92f14/attachment-0001.pdf>
More information about the reportlab-users
mailing list