• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EPS to NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EPS to NSBezierPath


  • Subject: Re: EPS to NSBezierPath
  • From: Henry McGilton <email@hidden>
  • Date: Sat, 1 Jan 2005 12:52:58 -0800


On Jan 1, 2005, at 11:39 AM, Lorenzo wrote:

Hi list,
I am still trying to extract NSBezierPath from an EPS file created by
Illustrator.
It seems to be so complicated. 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.

It is not a text document. It is a computer program written in a stylised subset of the PostScript programming language. As such, you need a PostScript interpreter to execute all the procedures and find out what the paths are. It is a non-trivial exercise.

Even considering the transformation matrix it should be easy.

Is a simple way to get the bezier paths from an EPS file?
Any "small" sample code? A tutorial?

At least, how can I get info from the pasterboard containing a bezierPath
copied from Illustrator?

You need to get hold of the Adobe Distiller or some program that performs the same functions as Distiller. The original use of Distiller was to 'flatten' PostScript files, essentially getting rid of their giant prologues and emitting 'pure' and simple PostScript.

Try a Google search for 'Adobe Distiller' and see what turns up.

If you can find something that performs the distiller job, you
should be able to end up with a simple PS file full of moveto,
lineto, curveto, and so on, which would be 'relatively easy'
to transform into NSBezierPath forms.

    Best of Luck,
		........  Henry


===============================+============================ Henry McGilton, Boulevardier | Trilithon Software Objective-C/Java Composer | Seroia Research -------------------------------+---------------------------- mailto:email@hidden | http://www.trilithon.com | ===============================+============================

_______________________________________________
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


References: 
 >EPS to NSBezierPath (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Accurate decimal numbers?
  • Next by Date: Re: Accurate decimal numbers?
  • Previous by thread: EPS to NSBezierPath
  • Next by thread: Re: EPS to NSBezierPath
  • Index(es):
    • Date
    • Thread