DivByZeroSetBBox
Programmer
I've been through some of the threads on using large data sets that can't be described in a single string. I wanted to be able to use the PostScript level 3 syntax with ReusableStreamDecode and SubFileDecode in order to print some large RGB images, and have been unable to figure this out. From what I can tell, I have the right syntax, but it fails either with ps2pdf, gs, or a level 3 Xerox printer. I minimized it down to the following code, which seems like it should work, but does not:
%!PS
/ImageData
currentfile
<< /Filter [/SubFileDecode /ASCIIHexDecode]
/DecodeParms [<< /EODCount 0 /EODString (*EOD*) >> null]
>> /ReusableStreamDecode filter
ffddccffddccffddccffddccffddccffddccffddccffddccffddcc
*EOD*
def
/Helvetica [24 0 0 24 0 0] selectfont
72 72 moveto
(TEST) show
showpage
Why does the code above (side-question: How do I format the block above as code on this forum?) fail with:
Error: /undefined in --filter--
Operand stack:
ImageData --nostringval-- --dict:2/2(L)-- --dict:2/2(L)-- --nostringval-- --nostringval-- true ASCIIHexDecode 1
From what I can tell this error should not occur. What do I need to change to make it work?
%!PS
/ImageData
currentfile
<< /Filter [/SubFileDecode /ASCIIHexDecode]
/DecodeParms [<< /EODCount 0 /EODString (*EOD*) >> null]
>> /ReusableStreamDecode filter
ffddccffddccffddccffddccffddccffddccffddccffddccffddcc
*EOD*
def
/Helvetica [24 0 0 24 0 0] selectfont
72 72 moveto
(TEST) show
showpage
Why does the code above (side-question: How do I format the block above as code on this forum?) fail with:
Error: /undefined in --filter--
Operand stack:
ImageData --nostringval-- --dict:2/2(L)-- --dict:2/2(L)-- --nostringval-- --nostringval-- true ASCIIHexDecode 1
From what I can tell this error should not occur. What do I need to change to make it work?