in reply to PDF::Create - help with tabulation
Sure ... split the string on tabs, then write each string to the column position you want. Something like:
# Four tabstop locations: my @colpos = (8, 24, 36, 45); while (....) { my @cols = split/\t/, get_next_string(); # Print each column at its tabstop for (my $i=0; $i < @colpos; ++$i) { $pages[$page_number]->string($f2, 8, $colpos[$i], $y, $cols[$i] ); } }
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PDF::Create - help with tabulation
by flexvault (Monsignor) on Jul 19, 2012 at 09:49 UTC | |
by roboticus (Chancellor) on Jul 19, 2012 at 18:46 UTC | |
by flexvault (Monsignor) on Jul 20, 2012 at 11:36 UTC | |
by roboticus (Chancellor) on Jul 20, 2012 at 13:10 UTC | |
by Gavin (Archbishop) on Jul 21, 2012 at 08:39 UTC | |
by roboticus (Chancellor) on Jul 23, 2012 at 23:26 UTC | |
by julio_514 (Acolyte) on Jul 23, 2012 at 23:06 UTC |