PDF Creator/Shared Printer

Ben Pfaff pfaffben@msu.edu
28 Sep 2000 15:04:32 -0400


Jason Justman <justmanj@msu.edu> writes:

> weird.  yes, it appears to expand properly, but when fed input from command line
> redirect, it doesnt like it..

It looks like it can't take input from stdin.  Try feeding it a
filename instead:

blp:~(0)$ ps2pdf - foo.pdf
showpage
Error: /undefinedfilename in (foo.pdf)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   2   3   %oparray_pop   --nostringval--   --nostringval--   false   1   %stopped_push   --nostringval--   --nostringval--   5   3   %oparray_pop
Dictionary stack:
   --dict:778/809--   --dict:0/20--   --dict:53/200--
Current allocation mode is local
Last OS error: 2
blp:~(0)$ ps2pdf > foo.pdf
Usage: ps2pdf [options...] input.ps [output.pdf]
blp:~(1)$ cat > foo.ps
showpage
blp:~(0)$ ps2pdf foo.ps foo.pdf
blp:~(0)$