Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create PDF Annotations in iOS

I've been working on a pdf viewer with support for annotations and I need to be able to save new annotations that the user has created. I've seen tons of examples on how to draw text/lines/images, but that's only flattened content, I need to create actual annotation objects

I've found no documentation or examples about it, so if anyone could point me in the right direction I would be extremely grateful

Cheers!

Edit: After several months of work we could release the v1 of this. We ended up using an open source c++ library, and went through a huge pain to make it compile for iOS. The one in charge of that isn't working in the company any more so we can't publish how we managed to do it

like image 457
Ismael Avatar asked Jun 04 '12 21:06

Ismael


People also ask

How do I annotate a PDF in IOS?

Tap the Camera button or the Document button , then look for the photo or PDF that you want to attach and mark up. Tap the attachment, then tap the gray arrow icon . Tap the Markup button to add your markup. Tap the plus button to add a signature, text, and more.

How do you annotate a PDF on iPad with Apple Pencil?

To add an annotation with Apple Pencil, tap anywhere on the page, then tap the annotation tool in the toolbar at the bottom of the screen. To use your finger, or if you've turned on Select and Scroll, tap the More button , then tap Smart Annotation. Tap Pen to add marks or tap Highlighter to highlight text.


2 Answers

Well, there are several paid/free source codes which are available which includes pspdfkit, fastpdfkit etc. Find the links below:

Well maintaining, support, and features but very expensive:

http://pspdfkit.com/

Looks nice, but not maintaining/support:

http://fastpdfkit.com/

https://github.com/vfr/Reader/

Other StackOverflow Threads:

add annotation to pdf

Add an annotation on a pdf

Annotation (notes, comments) using Quartz 2d in ios

Blogs:

http://codecanyon.net/item/html-pdf-viewer-ios-xcode-project/154673

http://www.binpress.com/app/pdftouch-sdk-for-ios/859

For free/open-source app you can check at

http://poppler.freedesktop.org/

like image 189
Lalith B Avatar answered Sep 27 '22 17:09

Lalith B


Please read the issues before using this framework, this developer is no longer maintaining and it has some serious issues.


I created an open source framework for PDF annotation in IOS in GitHub. It supports both iPhone and iPad. Please check it out here.
like image 34
lazyprogram Avatar answered Sep 27 '22 17:09

lazyprogram