Re: PICT preview in EPS file?
Re: PICT preview in EPS file?
- Subject: Re: PICT preview in EPS file?
- From: Greg Titus <email@hidden>
- Date: Wed, 16 Jul 2003 11:02:39 -0700
On Wednesday, July 16, 2003, at 10:36 AM, john mead wrote:
I'm attempting to write an EPS file to be used in DPT
applications such as QuarkXpress. It seems most DTP
applications use a low resolution bitmap image as a
proxy for on-screen display. This low res bitmap is
(or was?) stored in the resource fork of the EPS file
as a PICT bitmap.
I can produce an eps file with something like this:
data = [self dataWithEPSInsideRect: myRectangle];
[data writeToFile:myFile atomically:YES];
...however the resulting EPS does not contain a
preview, so QuarkXpress just displays a grey rectangle
instead of the image resulting in cranky designers.
Can anyone help me figure out how to get a preview
into an EPS file?
Hi John,
First, you'll want to refer to the EPS spec from Adobe:
http://partners.adobe.com/asn/developer/pdfs/tn/5002.EPSF_Spec.pdf
It is much easier to build a TIFF in Cocoa than to build a PICT, so a
good way to approach this is to make a TIFF preview, then prepend
Adobe's DOS EPS Binary File Header to the EPS data and write that. I
haven't specifically tried this with Quark, but I'd expect that if it
accepts a Mac-style EPS (with PICT preview) it can also handle a
DOS-style EPS (with TIFF or Metafile preview).
Hope this helps,
- Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.