Customizing iOS Annotation Tools

89 views
Skip to first unread message

James

unread,
Dec 24, 2014, 4:22:14 PM12/24/14
to pdfne...@googlegroups.com

Q:

I am currently evaluating PDFNet SDK as a framework for an IOS applications.
We need to be able to annotate, save and share PDF documents. In addition to search within documents.

I have managed to get the annotations tool working but have some questions I wonder if you can answer.

1. Is it possible to change the UI of the annotation toolbar, and add/remove items from it?

2. Is it possible to have the annotation toolbar appear from a menu rather than using a long click?

-------------------

A:

1. Judging from your second question, I believe by annotation toolbar you are referring to the UIMenuController that appears when you long press the document. Is that correct? If so, yes you can customize it. All of the document interaction behavior is part of the open source Tools library, which is included with the SDK in Lib/src/PDFViewCtrlTools. If you search for where UIMenuItem objects are created, you can find where the various options are added, and modify as needed.

2. Yes, a toolbar is part of the open source tools library, so you can customize it however you wish. Its source code can be found in Lib/src/PDFViewCtrlTools/Tools/Controls/AnnotationToolbar.{m,h}

It is used in the sample project CompleteReader.
Reply all
Reply to author
Forward
0 new messages