On 2/1/07, Patricio A. Bruna <[EMAIL PROTECTED]> wrote:

Anyone knows a easier method, that guest and try, to print an invoice in a
prepinted paper, i need to fill the gaps.
The size of the page is Letter.

So you have to make sure that all the ink ends up only in the right
places? I recommend that you first write a short program that simply
prints a "ruler page" -- a grid of numbered lines -- onto one of the
forms, so that you'll have some coordinates to start from. Use that to
locate the text frames.

But it's important that text not overrun the frames. So, next, make
another short program that prints the frames onto the form as (say)
shaded rectangles. This allows you to correct any mistakes in the
frame coordinates, or to make adjustments if the form changes (as they
all do, eventually). Allow for a little slop, since the position of
the image on the page may vary from printer to printer, or even from
sheet to sheet with the same printer.

Finally, your "real" program can use the frame coordinates to
accurately print into the form.

Another method to consider, though, is whether you could print both
the invoice and the background of the form. That is, do you *have* to
use the preprinted stock, or could you print a completed form onto
blank stock?

Good luck with it!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to