[OS X TeX] EPS to PDF conversion fails in graphicx (but not in preview)

Peter Dyballa Peter_Dyballa at Web.DE
Fri Dec 3 19:02:53 EST 2010

Am 03.12.2010 um 23:13 schrieb Siep Kroonenberg:

> There is no need for guesswork or inspection: according to Adobe's
> eps specification, for an eps with preview the first 4 bytes should
> be #c5d0d3c6, the next 4 bytes indicate the start of the postscript
> code and the 4 bytes after that the length of the postscript
> section. This makes it trivially easy in almost any scripting
> language to extract the actual postscript code.

The file starts with the hex c5d0d3c6 (or ≈–”Δ as string). Then  
comes a SPACE (or 20) followed by three ASCII NUL. So the number is  
20,000 hex or 131,072 dec. This leads into the middle of some  
PostScript code. Then follows 7B50 hex (^G^K^E^@) or 31,568 dec. The  
"scrappy" last 327,759 bytes then are a TIFF image of the EPS image...

And 5002.EPSF_Spec describes this header as "DOS EPS Binary File  
Header" – why is it produced on a Mac in a Mac-Roman encoding?



Increase the size of your bike by at least *five* inches!

More information about the MacOSX-TeX mailing list