H
Huub
Hi,
I wrote a script that reads from a database and should print to labels
on a printer. It did work, but the text is out of proportion. I first
got advise to use PCL, but I didn't get that working. Next advise was to
use PostScript::Simple. I think I have that working, although loading
the generated .ps file couldn't be loaded by Evince that kept showing
"loading".
Now I have a question: when I write to file, I do this:
open(out,">$FILE");
print out "some text\n";
print out "some text2\n";
close(out);
Now, with PS, I have to use e.g.
my $ps = new PostScript::Simple(....);
$ps->text(10,10,"some text");
$ps->text(10,11,"some text2"); (?)
$ps->output("file.ps");
I suppose I just should replace all lines
print out "some text";
by
$ps->text(<x>,<y>,"some text");
Is this correct?
Thanks for helping.
Huub
I wrote a script that reads from a database and should print to labels
on a printer. It did work, but the text is out of proportion. I first
got advise to use PCL, but I didn't get that working. Next advise was to
use PostScript::Simple. I think I have that working, although loading
the generated .ps file couldn't be loaded by Evince that kept showing
"loading".
Now I have a question: when I write to file, I do this:
open(out,">$FILE");
print out "some text\n";
print out "some text2\n";
close(out);
Now, with PS, I have to use e.g.
my $ps = new PostScript::Simple(....);
$ps->text(10,10,"some text");
$ps->text(10,11,"some text2"); (?)
$ps->output("file.ps");
I suppose I just should replace all lines
print out "some text";
by
$ps->text(<x>,<y>,"some text");
Is this correct?
Thanks for helping.
Huub