To support the annotation click, you need to implement a listener to handle the different types of annotations (annotations could be link, hyperlink, text, movie, sound, generic binary, etc.).
If you are using the PDFReader view class, you need to implement the listener PDFReaderListener:
@protocol PDFViewDelegate <NSObject>
- (void)OnPageChanged :(int)pageno;
- (void)OnLongPressed:(float)x :(float)y;
- (void)OnSingleTapped:(float)x :(float)y;
- (void)OnFound:(bool)found;
- (void)OnSelStart:(float)x :(float)y;
- (void)OnSelEnd:(float)x1 :(float)y1 :(float)x2 :(float)y2;
- (void)OnAnnotClicked:(PDFPage *)page :(PDFAnnot *)annot :(float)x :(float)y;
- (void)OnAnnotEnd;
- (void)OnAnnotGoto:(int)pageno;
- (void)OnAnnotPopup:(PDFAnnot *)annot :(NSString *)subj :(NSString *)text;
- (void)OnAnnotOpenURL:(NSString *)url;
- (void)OnAnnotMovie:(NSString *)fileName;
- (void)OnAnnotSound:(NSString *)fileName;
@end
In OnAnnotClicked, you need to call [m_view vAnnotPerform]; which is responsible for identifying the different types of annotations, handling the goto-annotations and extracting the data for the other types (hyperlinks, JavaScript, video, audio, attachment and 3D) and passing them to the corresponding methods for you to handle.
RadaeePDF SDK for iOS
Support annotation click on Android
Created : 2015-01-19 17:24:59, Last Modified : 2015-02-03 10:47:19