tags:

views:

52

answers:

1

Hello All,

I need to annotate a PDF in my application. is there any API for PDF annotation in iphone/ipad ?

any suggestion thanx in advance.

A: 

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);
thyrgle
thanx for your reply.
plz look at "iAnnotate","GoodReader" applications. seems it is usinng any PDF API for annotation i am looking for same API which can be used to implement word search, highlight, add notes, etc in PDF document.
@user: They didn't necessarily use an API. They could have done it themselves.
thyrgle