Hello Jack and Laurent. So I will see the CGPDF API, also what Jack wrote.
The idea its very simple, load pdf and be able to add notes, as I understand I can "inject" the notes object in the pdf strucutre, correct me if Im wrong please, this is the first time Im gonna be doming something like this, so I wanna make sure I have the basics well understood. Gustavo On 19.5.2010, at 12:13, Jack Nutting wrote: > On Wed, May 19, 2010 at 12:07 PM, Gustavo Pizano > <gustavxcodepic...@gmail.com> wrote: >> Hello all. >> >> I would want to know if I can render pdf into iPad using quartz, or I have >> to use UIWebView... or whats the way to achieve this? >> >> > > The basics are very simple: > > - (NSData *)pdfDataForView:(UIView *)myView inRect:(CGRect)bounds { > // set up PDF rendering context > NSMutableData *pdfData = [NSMutableData data]; > > UIGraphicsBeginPDFContextToData(pdfData, bounds, nil); > UIGraphicsBeginPDFPage(); > > // tell our view to draw > [myView drawRect:bounds]; > > // remove PDF rendering context > UIGraphicsEndPDFContext(); > > return pdfData; > } > > If you need to do a multipage document, it will get more complicated. > > HTH, > > -- > // jack > // http://nuthole.com > // http://learncocoa.org _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com