[OS X TeX] Distiller
Siep Kroonenberg
siepo at cybercomm.nl
Sun Jan 29 15:14:36 CET 2006
On Sun, Jan 29, 2006 at 02:05:22PM +0000, Jonathan Kew wrote:
> On 29 Jan 2006, at 1:24 pm, Siep Kroonenberg wrote:
> >
> >========= (Non-techies: close your eyes) ===============
> >
> >As to the mess of line endings:
> >
> >I read the entire eps file in one go, and split the string according
> >to /\r?\n|\n/ and parse all resulting strings.
>
> This is not robust, because EPS files can contain binary sections.
> (These will be marked by DSC comments such as %%BeginBinary:... I
> forget the precise syntax offhand.)
>
> JK
I believe it is robust for valid eps files, since the boundingbox
comments should occur in the header or in the trailer. For a valid
eps file, these will be the only parts that will get scanned.
--
Siep Kroonenberg
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list