Re: EPS to NSBezierPath
Re: EPS to NSBezierPath
- Subject: Re: EPS to NSBezierPath
- From: Robert Clair <email@hidden>
- Date: Sun, 2 Jan 2005 20:53:47 -0500
I am still trying to extract NSBezierPath from an EPS file created by
Illustrator.
It seems to be so complicated.
It is.
I have downloaded GhostScript just to have an
idea about that but it's even more complicated. Same thing for the
Adobe
document describing the file format. I can't believe that extracting a
list
of points from a text document is so complicated.
Believe it. As was pointed out, it's not a "text document".
Even considering the
transformation matrix it should be easy.
What basis do you have for thinking this ?
So I ask:
Is a simple way to get the bezier paths from an EPS file?
No. At least not with any of the commonly understood definitions
of the word "simple".
Any "small" sample code? A tutorial?
No. This is like asking for "small" sample code for a compiler.
There is a subtle point here. EPS and pdf files are designed as *page
descriptions*,
NOT (despite sort of being used as such by Illustrator, etc) geometric
databases. As you are discovering, page descriptions make lousy
geometric databases.
At least, how can I get info from the pasterboard containing a
bezierPath
copied from Illustrator?
Illustrator puts the selection on the clipboard in two forms: PICT and
pdf. I don't
know anything about PICT, especially whether this is a vector PICT or a
bitmap.
If it is a vector PICT and you know how to read them - there you go.
The pdf on the
clipboard doesn't help you at all - it is a regular pdf just like
saving a file from Illustrator.
Again I would suggest looking at pstoedit and at whichever open source
drawing
program was trying to read Illustrator files. (Sketch or whatever it is
called now ?).
But, unfortunately, it's still not going to be simple.
.......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