[cups.bugs] [MOD] STR #2306: pstops mishandles eating %%BeginFeature/%%EndFeature blocks

mark Davies mark at mcs.vuw.ac.nz
Thu Mar 22 03:51:39 PDT 2007


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

When n-uping postscript that includes %%BeginFeature/%%EndFeature blocks,
pstops fails to detect the end of the block and eats lines up to the end
of the %%EndPageSetup section.

eg. A postscript file that includes the following:

%%BeginPageSetup
%
[{
%%BeginFeature: *InputSlot Tray_2

    <</ManualFeed false /MediaPosition 0>> setpagedevice
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *PageSize Letter

    <</DeferredMediaSelection true /PageSize [612 792] /ImagingBBox null
/MediaC
lass null >> setpagedevice
%%EndFeature
} stopped cleartomark
%%EndPageSetup

as generated by openoffice, when run through "pstops number-up=2"
produces:

%%BeginPageSetup
userdict/ESPsave save put
18.0 36.0 translate
0.0 720.0 translate -90 rotate
0.0 55.1 translate 0.588 0.588 scale
0 0 612 792 ESPrc
%
[{
%%EndPageSetup

because it didn't detect the %%EndFeature.

The attached file has the fix for pstops.c

Link: http://www.cups.org/str.php?L2306
Version: 1.2.8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-ae
Type: application/octet-stream
Size: 357 bytes
Desc: not available
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20070322/0e8315f2/attachment.obj>


More information about the cups-devel mailing list