[reportlab-users] Micr font advice in reportlab
Henning von Bargen
H.vonBargen at t-p.com
Wed May 29 11:11:13 EDT 2013
Mike Driscoll wrote:
> 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.
>
You are wrong, the semi-colon is there!
When I open your attached PDF file with Adobe Reader,
select the whole text and copy it into a text editor,
it is shown as
123456; :1234567890: 1111111111
Note the semi-colon after 123456.
HTH
Henning
More information about the reportlab-users
mailing list