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 protected]> 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
