--> Some investigations :
Apple provides two ways to draw EPS contents with Carbon and Quartz
system.
- The first is to use a sequential processes which permits to
convert EPS files into PDF files, because Quartz can draw PDFs more
easily than EPS. It seems to be the most helpfull method.
-The second is the "standard" Tiger method to draw EPS : creating a
data provider (quartz internal) and a proxy rendered of the EPS data,
and supply them to the Quartz function
PMCGImageCreateWithEPSDataProvider, which returns a CGImageRef.
Then ==> classical painting into mrContext .....
I tried to use the first method, but i discovered it require a
physical file, so we can't use as DrawEPS is used. If we wan't to use
it, we have to write the EPS file into a temp folder (i don't know
how it works in OpenOffice project), convert it into pdf, and then,
draw with quartz into mrContext
So i'm trying to implement the second method (so usefull with Tiger
but not with Panther...)
I think i've well understood the dataprovider system supplied by
Apple, i've used which it seems to be an untyped pointer to the EPS
contents and the size of the header.
Then, i've some problems with the another parameters of
PMCGImageCreateWithEPSDataProvider : it is a CGImageRef, but i can't
find how to create a proxy preview of the EPS data....
To be continued
Damien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]