Specifying an input file

Michael Sweet mike at easysw.com
Fri Feb 25 05:03:45 PST 2005


Bruce F. wrote:
> Well, I have a postscript program that does mailing lables
> by reading them from a file. I used to use "currentfile" in
> the PS, which reads the data following the postscript code.
> This doesn't work in CUPS, because apparently foomatic or
> somebody is adding a bunch more postscript to the end of
> my file (after my input data).
> 
> So fine, I thought I'll just read from a file instead.
> I changed "currentfile" to "(%os%/tmp/lbltmp) (r)" for the
> "file" command to open.  No luck. Doesn't work without
> the "%os%" either. This is all using GS 7.07 under Fedora
> Core 3 on an x86 whitebox.  Foomatic logs a "invalidfileaccess"
> error and quits.

File access is specifically not allowed by Ghostscript for very
good reasons of security...

If you properly wrap your data with DSC Begin/EndData comments
then you should be able to use currentfile to grab it (images are
printed this way...)

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups mailing list