in reply to PDF Letter format
Look at the following part of your code:
$txt->font($fnt,9); $txt->translate(20,740); $txt->text("I am here"); $txt->font($fnt,9); $txt->translate(20,728); $txt->text("P.O.Box 1234");
What it does, is it prints one line of text at (20,740), and then another line at (20,728). The coordinates are given in pt (same unit as font size), and the (0,0) point is located in the lower left point of your page. If you want to put another line below the send one, you would have to subtract some pt from its Y coordinate. The font size is 9pt, so in this example, by subtracting 12pt you get one line below, with an interline roughly equivalent to 130% (in a word processor).
If you want to add extra vertical space, just mess around with the coordinates. Good luck!
- Luke
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PDF Letter format
by Anonymous Monk on Nov 21, 2014 at 18:18 UTC | |
by poj (Abbot) on Nov 21, 2014 at 18:48 UTC | |
by Anonymous Monk on Nov 21, 2014 at 18:35 UTC |