Re: PDF on a NSView
Re: PDF on a NSView
- Subject: Re: PDF on a NSView
- From: email@hidden
- Date: Wed, 9 Jan 2002 17:08:34 -0800
just load it in an NSImage and use drawAtPoint or drawInRect... pdf is
as good as jpg or tiff for nsimage.
On Wednesday, January 9, 2002, at 06:53 AM, Stiphane Sudre wrote:
On Wednesday, January 9, 2002, at 03:08 PM, Lizardo H. C. M. Nunes
wrote:
Hi,
Is it possible to render a PDF file on a NSView? I hope you can help
me or point me to the proper documentation.
I'm using the graph application (plotutils, gnu package) to visualize
simple data on Mac OS X / XDarwin. Alternatively, a PS file can be
created and translated to a PDF one; that's why I want to know how I
could render a PDF file on a NSView (if possible).
Didn't check the code or run it but something like this could work. I'm
quite sure there's an easier solution.
<snip>cgcode</snip>