Re: [SLUG] [PIG] Writing checks from PHP

From: Kwan Lowe (
Date: Thu Apr 27 2006 - 14:02:10 EDT

> Okay, here's (what I consider) an interesting programming problem. The
> idea would be to generate a check in your browser screen, and be able to
> print the screen and get a check on your own check forms (8-1/2x11). The
> screen would look just like your check, except for your company name,
> MICR printing, etc. Everything exactly where it would be when you print
> it on your checks (from NEBS or whoever).
> PHP is the language of choice here. But PHP has no ability to place
> screen objects at a certain position on the screen. Most likely, you'd
> have to have everything surrounded by the <PRE> tag, so it should print
> exactly what you want where you want it (assuming Courier or some
> similar font).
> Here's the other snag: the screen coordinates (line and column) for each
> part of the check (payee, date, etc.) are in a PostgreSQL database. This
> is so the user can configure the check depending on who he bought his
> checks from.
> I'm working on this myself, but since we've got programmers wanting to
> geek out, I thought I'd give everyone else a shot. Might be interesting.

One option you may consider is to form the images in Postscript then do a pstopnm
for preview. If OK, then pstopdf the image and send it. There are some php/ps
modules available also:


* The Digital Hermit
* Unix and Linux Solutions
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.

This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:03:45 EDT