开发者

How To Annotate A PDF in iPad

I need to annotate a PDF in my application. Is there any API for PDF annotation in iPhone/iPad ? Any suggestions?开发者_开发知识库


You can draw an existing PDF onto a new PDF graphics context and then add whatever you like. See the answer to a similar question for iPhone.


You could use the PoDoFo Library to add, read or delete the Annotations. But you will need to write your own viewer to display the pdf including the annotations.

I recently wrote a simple viewer for the iPad with the integration of the PoDoFo Library. You can find the very simple sample code on GitHub. There you can work with Square and FreeText annotations.


I created an open source framework for PDF annotation in IOS in GitHub. It supports both iPhone and iPad. Please check it out here.


No there is none, but you can probably create an array of UITextViews, with a custom background, as stickies or something like that.

You can make a UITextView with a custom background like so:

UITextView *textView = [[UITextView alloc]initWithFrame: window.frame];
    textView.text = @"Notes";
    UIImageView *imgView = [[UIImageView alloc]initWithFrame: textView.frame];
    imgView.image = [UIImage imageNamed: @"myImage.jpg"];
    [textView addSubview: imgView];
    [textView sendSubviewToBack: imgView];
    [window addSubview: textView];

And then you can set the position with:

textView.position = CGPointMake(xcoord, ycoord);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜