export import eps | illustrator | pstoedit
- To: mathgroup at smc.vnet.net
- Subject: [mg59574] export import eps | illustrator | pstoedit
- From: Chris Chiasson <chris.chiasson at gmail.com>
- Date: Fri, 12 Aug 2005 00:09:52 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello MathGroup, I am trying to Import some 2D vector graphics from a PDF. I have taken the graphics and put them in an Adobe Illustrator file. I have tried all manner of export methods. PS EPS DXF SVG In all cases Mathematica either can't read the files or reads them incorrectly in a way that makes it impossible to obtain the data I need. Also, using ghostview/pstoedit on the ps and eps output of Illustrator has been ineffective. So, I decided I would start small: NotebookDirectory= DirectoryName[ ToFileName["FileName"/.NotebookInformation[EvaluationNotebook[]]]]; Export[ToFileName[NotebookDirectory,"\\Engine Map\\temp2.eps"], Plot[x^2,{x,0,3},Epilog->{Hue[0],Line[{{1,0},{1,9}}]},ImageSize->600]] Show@Import[ToFileName[NotebookDirectory, "\\Engine Map\\temp2.eps"]] The result of these commands is a Graphics object that has misaligned text on the axes, but is otherwise acceptable. Now: I open Illustrator, open the temp2.eps file, save it as an eps (varying the version of the EPS has had no effect), close Illustrator and then issue the following command again: Show@Import[ToFileName[NotebookDirectory, "\\Engine Map\\temp2.eps"]] The output is now: DeleteFile::privv: Privilege violation during DeleteFile[C:\DOCUME~ 1\Chris\LOCALS~1\Temp\.00009a03480]. Import::fmterr: Invalid EPS format. Show::gtype: Symbol is not a type of graphics. Show[$Failed] What is going on? How do I fix this problem? If I can import this basic graphic with your help, I may be able to tackle the other one. Versions: Win XP SP2 Mathematica 5.2 Student Adobe Illustrator CS 2 Tryout -- Chris Chiasson http://chrischiasson.com/ 1 (810) 265-3161
- Follow-Ups:
- Re: export import eps | illustrator | pstoedit
- From: Pratik Desai <pdesai1@umbc.edu>
- Re: export import eps | illustrator | pstoedit