• 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
Generating a PDF file without a NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Generating a PDF file without a NSView


  • Subject: Generating a PDF file without a NSView
  • From: David Adalsteinsson <email@hidden>
  • Date: Fri, 16 Nov 2001 00:42:34 -0500

How can I create a PDF file (and EPS) without drawing it inside a drawRect in NSView and then
using "dataWithPDFInsideRect/dataWithEPSInsideRect" on the view.

I would like to be able to do something like:

Create an empty NSPDFImageRep/NSEPSImageRep
Connect it to a NSImage
draw into the NSImage using standard drawing command (lockFocus, ...., unlockFocus)
extract the representation with NSPDFImageRep/NSEPSImageRep

Is this in the right direction? If so, what is the exact syntax for lines 1 & 2.

Should I do this entirely differently.

Any help appreciated.

David


  • Follow-Ups:
    • Re: Generating a PDF file without a NSView
      • From: Stefan Jung <email@hidden>
  • Prev by Date: Oddity
  • Next by Date: RE: Keyboard events in a PrefPane
  • Previous by thread: Re: Oddity
  • Next by thread: Re: Generating a PDF file without a NSView
  • Index(es):
    • Date
    • Thread