Specifying an input file

Bruce F. brf33 at comcast.net
Fri Feb 25 17:21:07 PST 2005


For some reason, the DSC approach didn't work for me, but
now I can see why there would be security concerns. The
use of a "/SubFileDecode filter" works like a charm and
solved my problem.

Sometimes I just need that bit of direction as to where to
look in the imposing manual.  Thanks for the help.

> 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