Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EPS, PS, SubFileDecode, ReusableStreamDecode

Status
Not open for further replies.

tgreer

Programmer
Oct 4, 2002
1,781
0
0
US
Ok folks! All of these posts regarding EPS in Forms, using filters and so on, have a MISTAKE. Thanks to an emailer for digging into this for me.

The problem appears in certain RIPs, when the SubFileDecode filter is used as a parameter for the ReusableStreamDecode filter. That's what this technique does. Notice the code snippet:

Code:
/ImageData
currentfile
<< /Filter /SubFileDecode
   /DecodeParms << /EODString (*EOD*) >>
>> /ReusableStreamDecode filter
% EPS code here
% etc, etc
*EOD* def

That's what I've been using and posting. However, the PostScript Language Reference Manual states on page 151:


&quot;In LanguageLevel 2, EODCount and EODString are specified as operands on the stack. In LanguageLevel 3, they may alternatively be specified in theSubFileDecode parameter dictionary (as shown in Table 3.23). They must be specified in the parameter dictionary if the SubFileDecode filter is used as one of the filters in a ReusableStreamDecode filter (described in the next section).&quot;


Notice, they must be specified. &quot;They&quot; meaning BOTH keys, including the /EODCount. So the code above should properly be:

Code:
/ImageData
currentfile
<< /Filter /SubFileDecode
   /DecodeParms << /EODCount 0 /EODString (*EOD*) >>
>> /ReusableStreamDecode filter
% EPS code here
% etc, etc
*EOD* def

I hope this helps!


Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top