Specifying an input file
Helge Blischke
h.blischke at srz.de
Fri Feb 25 05:47:47 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.
>
> Any postscript or cups guru out there who can give me a
> clue about how to get my file data read by my postscript?
>
> Thanks a bunch. I'll check this group regularly for the next
> week or so.
In your PS code, read from
currentfile 0 (%This is the end of my damned data) /SubFileDecode
filter
and append the contents of the parens to your data.
For the details and explanation see the PLRM.
Helge
--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
tel: +49 30 75301-360
More information about the cups
mailing list