in reply to Re^2: create ps file with PostScript::Simple - cannot print it out?
in thread create ps file with PostScript::Simple - cannot print it out?

Weird? No. I used an EPS that I've had for awhile. Evidently, it's corrupt. I tried your EPS, and yes there's a bbox. Now it comes back with "unknown option -S". Sorry.

Update: changed -S to -H and got "lpr: success".

Update2: changed system("lpr -H server -P printerN headps.ps) == 0 or die $!;

to this:

system("lpr -H server -P printerN headps.ps) or die $?;

Replies are listed 'Best First'.
Re^4: create ps file with PostScript::Simple - cannot print it out?
by cta (Acolyte) on Jul 17, 2008 at 13:55 UTC
    I used -H instead to -S like you said but I got this error :
    Died at C:/Documents and Settings/workspace/Printing/new.pl line 17.
    I think that the ps file created has been corrupt, not the eps file . So that's why when it's sent to the printer, it cannot be printed.
    But I don't know how to fix it :(