[gs-bugs] [Bug 690225] Predictable input processing when reading from a pipe

bugs.ghostscript.com-bugzilla-daemon at ghostscript.com bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
Tue Feb 17 06:24:39 PST 2009


------- Additional Comments From alex.cherepanov at artifex.com  2009-02-17 06:24 -------
First, Adobe specifies that PDF file starts with 1024 bytes of junk. Actuality,
they say that the reader should search the first 1K of the file for the header,
presumably to process PDF file included in an email as text.

The size of the searched block may increase if Adobe chooses to do so.

Fortunately, PS file is recognized by the first 2 characters, '%!' before
GS tries to find PDF header. So all you need to do is to start your file with
'%!' . This is a standard practice, documented in every PS manual.

The graphic output is also buffered. You need to use operator 'flushpage'
to ensure that the graphic window is updated.

With '%!' header and 'flushpage' the animation works as expected.

Finally, 8 queens problem can be easily coded in PostScript. Long ago I coded it
on an early programmable calculator that had 14 memory cells, 98 program cells,
and 2 FLOPS speed.

------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the gs-bugs mailing list