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

From: Paul M Foster (
Date: Thu Apr 27 2006 - 16:21:41 EDT

Ian C. Blenke wrote:
> Paul M Foster wrote:
>> Kwan Lowe wrote:
>>>> 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.


> There are numerous PDF libraries out there for just about every
> programming language.
> That'd be the direction I would go with this.

The answer is... the php fpdf package. Very compact, but it works for
what I want. All courier, everything precisely spaced for correct
alignment on a check. Now I just have to write code to retrieve
coordinate values from the database, along with the data to print, and
hammer it all together to make a full script.

Paul M. Foster
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:04:35 EDT