Creating EPS or PDF from NSBezierPath

Discussion in 'Mac Programming' started by Thethuthinang, Mar 10, 2011.

  1. Thethuthinang macrumors member

    Joined:
    Jan 3, 2011
    #1
    Does anyone know how to create a (resolution independent, fully vector-based) EPS or PDF from an NSBezierPath? Is this even possible? I want to generate an image which I can then take into Adobe Illustrator and manipulate.
     
  2. Thethuthinang thread starter macrumors member

    Joined:
    Jan 3, 2011
    #2
    I just figured it out. The following method of the NSView class does exactly this:

    - (NSData *)dataWithEPSInsideRect:(NSRect)aRect
     

Share This Page