Re: Draw NSBezierPath inside a PDFPage
Re: Draw NSBezierPath inside a PDFPage
- Subject: Re: Draw NSBezierPath inside a PDFPage
- From: malcom <email@hidden>
- Date: Sat, 7 Mar 2009 23:17:04 +0100
In fact I need to make a small editor that allow the user to draw and
edit NSBezierPath (like in Sketch example) inside a PDFPage and then
incorporate them inside the page (in a second moment). My temp
solution is to draw an image with the pdf rapresentation and then draw
it as background for my view...but if I could draw directly on PDFPage
it will be the best solution. I've tried to subclass PDFView but
nothing and PDFPage does not have necessary methods (or I have not
found it).
On Sat, Mar 7, 2009 at 10:19 PM, Antonio Nunes <email@hidden> wrote:
> On 7 Mar 2009, at 10:51, malcom wrote:
>
>> is possible to draw NSBezierPath inside a PDFPage? How?
>
> Yes it is. How, depends on what you want to do, but you provide no
> information about that. Is it for onscreen drawing only, or is it to be
> incorporated into the PDF page saved/printed? Are you using a PDFView or
> your own custom view to draw the page (do you want to draw the page at all)?
> Core Graphics level or PDFKit level?
>
> Apple provide a number of sample code projects that show how to use PDFKit.
> For one, you may find PDFKitLinker2 a useful resource to dive into, since it
> specifically draws NSBezierPaths on PDFPages.
>
> António
>
> -----------------------------------------------------------
> Don't believe everything you think
> -----------------------------------------------------------
>
>
>
>
>
--
www.malcom-mac.com - software for mac and iphone
Ted Turner - "Sports is like a war without the killing."
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden