Reputation: 59
I'm using these lines of code for an export of a vector PDF and this works fine:
MyView *myView = [[MyView alloc] initWithFrame:NSMakeRect(0, 0, 1700.0, 1700.0)];
myView.dataString = [dataText stringValue];
NSData *data = [myView dataWithPDFInsideRect:myView.bounds];
export = data;
However when I use essentially the same for EPS it create the EPS file however it's put a raster image of the view on layed on top of the the EPS file rather than all the elements in vector format as it does for PDF any ideas why?
MyView *myView = [[MyView alloc] initWithFrame:NSMakeRect(0, 0, 1700.0, 1700.0)];
myView.dataString = [dataText stringValue];
NSData *data = [myView dataWithEPSInsideRect:myView.bounds];
export = data;
Here is the difference from how they render for reference:
Upvotes: 0
Views: 30