使用 micror 字体打印到 php 脚本
我有人问是否可以创建一个脚本,可以从支票打印软件(Quicken-esque)打印并使用 MICR 编码创建支票。我告诉他们这是不可能的,但我想我应该先检查一下。
我看了看,但没有看到任何东西(除了软件)。看起来微型打印有非常严格的标准,而且听起来 php 不太可能处理它。
有什么想法吗?
我偶然发现了一种可能有用的免费 micror 字体。 http://www.sandeen.net/GnuMICR/ 可以安装在计算机上,然后呈现 micr 字体,该字体可以打印。
我想定位也相当重要......也许这可以通过 javascript/jquery 来完成?
I have someone who is asking if a script could be created that could be printed to from check printing software (Quicken-esque) and create checks with MICR encoding. I told them it wasn't possible, but I guess I should have chequed first.
I looked but didn't see anything out there (besides software). It looks like micr printing has very strict standards, and sounds like it's unlikely php can handle it.
Any thoughts?
I happened across a free micr font that might work. http://www.sandeen.net/GnuMICR/ can be installed on computers then renders micr font which can be printed.
I guess positioning is rather important too... perhaps this could be accomplished with javascript/jquery?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
PHP 可以以多种格式呈现输出。 PDF 似乎是最好的选择。
MICR 字体可在 PHP 生成的 PDF 文档中使用。
最大的挑战是打印的物理行为,这需要非常专业的套件。
PHP can render output in a variety of formats. PDF seems the best choice here.
MICR fonts are available and usable within PHP generated PDF docs.
The biggest challenge looks like the physical act of printing, which needs very specialised kit.
MICR 中的“M”代表“磁性”。
这很重要:他们使用专门的打印设备来打印它。
您将能够获得看起来类似 MICR 的字体,但除非您使用磁性墨水打印它,否则它实际上并不是 MICR。
然而,除非您实际上打算创办一家银行并生成自己的固定支票,否则您不太可能需要这个。
大多数(几乎全部?)支票打印(如果您是美国人,则称为“支票打印”)是使用银行提供的预先打印的支票信纸完成的。他们提供支票;您的软件只需要打印收款人、金额、日期和签名图形。
您不需要打印 MICR 文本;这应该已经在预先印制的信纸上。
The "M" in MICR stands for "Magnetic".
This is important: they use specialised printing equipment to print it.
You'll be able to get fonts that look like MICR, but unless you print it in magnetic ink, then it won't actually be MICR.
However, unless you're actually planning to start a bank and generate your own cheque stationary, it's unlikely that you're going to need this.
Most (virtually all?) cheque printing (or 'check printing' if you're American) is done using pre-printed cheque stationary provided by the bank. They provide the cheques; your software only needs to print the payee, the amount, the date and a signature graphic.
You shouldn't need to print the MICR text; this should already be on the pre-printed stationary.