我需要在我的应用程序中注释PDF。 iPhone / iPad中是否有用于PDF注释的API?有什么建议吗?
答案 0 :(得分:2)
您可以将现有PDF绘制到新的PDF图形上下文中,然后添加您喜欢的任何内容。请参阅similar question for iPhone的答案。
答案 1 :(得分:2)
您可以使用PoDoFo库添加,阅读或删除注释。但是您需要编写自己的查看器来显示包含注释的pdf。
我最近为iPad编写了一个简单的查看器,集成了PoDoFo库。你可以找到非常simple sample code on GitHub。在那里,您可以使用Square和FreeText注释。
答案 2 :(得分:2)
我在GitHub中的IOS中为PDF注释创建了一个开源框架。它支持iPhone和iPad。请查看here。
答案 3 :(得分:1)
没有,但你可以创建一个UITextViews数组,带有自定义背景,像stickies或类似的东西。
您可以使用自定义背景制作UITextView,如下所示:
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];
然后你可以用以下方式设置位置:
textView.position = CGPointMake(xcoord, ycoord);