[cups.general] pstops and DSC conformance

Helge Blischke h.blischke at acm.org
Tue Nov 3 07:05:39 PST 2009


Tim Waugh wrote:

> On Tue, 2009-11-03 at 06:18 -0800, Helge Blischke wrote:
>> As far as I see it , it would be safe for the pstops filter to
>> insert the "userdict/ESPsave save put" at the very begining of the page
>> setup section (preceding the stuff already present).
> 
> I was wondering that, but I expect there was careful thought already put
> into the precise place to insert pstops's code.
> 
>> By the way, from your sneppets I cannot determine what the excript
>> generated save / restore brackets are good for (perhaps you could post a
>> sample file to do more investigations).
> 
> The actual example is this:
> 
> 1. yes | cat -n | head -120 | enscript -o /tmp/test.ps
> 2. /usr/lib/cups/filter/pstops 123 imc "" 1 "number-up=2" < /tmp/test.ps >
> /tmp/test2.ps
> 3. gs /tmp/test2.ps
> 
> At step 3 gs gives this error:
> 
> Error: /undefined in --get--
> Operand stack:
>    --dict:129/200(L)--   ESPsave
> GPL Ghostscript 8.70: Unrecoverable error, exit code 1
> 
> Tim.
> */

I just executed your 3 steps and - heureka - the result is OK. The enscript 
version is 1.6.4 and the pstops filter is from CUPS 1.3.11. Attached is the 
gzipped result file.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: prn00372.gz
Type: application/x-gzip
Size: 4659 bytes
Desc: not available
URL: <https://lists.cups.org/pipermail/cups/attachments/20091103/4abe213b/attachment.bin>


More information about the cups mailing list