I can replicate your problem. Seems you have to explicitly tell PostScript::Simple to not create EPS files (apparently that's the default). I.e.
my $p = new PostScript::Simple(papersize => "A4", colour => 1, eps => 0); # <-- !
EPS files won't have1 a PS showpage command (which tells the PS interpreter to actually print/output the internally rendered page), because they're meant for inclusion in other documents.
GhostScript-derived programs automatically add a showpage if there isn't one already (while real printers do not) — which explains why it does work in that case...
___
1 or, more precisely, they shouldn't normally contain "showpage" — at least that's the theory (in that respect, PostScript::Simple is behaving correctly — what's a bit counter-intuitive, though, is that EPS output is the default...).
In real life, however, many programs do output a showpage even with EPS files - the one you're including does have one, for example - just in case someone wants to print the EPS file stand-alone, i.e. without wrapping it in a regular PS document. For the same reason, programs that include EPS files typically locally redefine the showpage command as a no-op (also done by PostScript::Simple), so the command doesn't cause any problems with the page being printed too early...
In reply to Re: create ps file with PostScript::Simple - cannot print it out?
by almut
in thread create ps file with PostScript::Simple - cannot print it out?
by cta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |