Re: Illustrator to NSBezierPath
Re: Illustrator to NSBezierPath
- Subject: Re: Illustrator to NSBezierPath
- From: Robert Clair <email@hidden>
- Date: Tue, 28 Dec 2004 16:55:53 -0500
Lorenzo:
Earlier Illustrator files are EPS files with extra meta-data in comment
fields, more
recent ones are essentially pdf files with extra information in comment
fields. I don't
remember when the change over was, somewhere between version 7 and
version 10.
Reading the complete information (if for instance you were trying to
make
an Illustrator clone) is equivalent to the parsing part of a PS or pdf
interpreter plus
reading the extra info in the comments. A non-trivial undertaking to
put it mildly.
Remember the final shape you see is determined not just the paths but
also by
the current transform matrix (CTM). There is a stack of graphic states,
just
like in Quartz, not surprising since the PS/pdf imaging model is where
Quartz comes from.
You can download the file format spec for Illustrator 7 from Adobe.
It's 160+ pages.
You might try looking at pstoedit. Also one of the open graphics
projects (don't rmemeber
which one, was making a stab at it. Marcel Weiher, who reads this list,
sells a Cocoa
PS/pdf interpreter which could do what you want.
.....Bob Clair
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden