|
@@ -297,12 +297,15 @@
|
|
|
[self.view addSubview:vc.view];
|
|
|
self.contentViewController = vc;
|
|
|
} else if ([annotation isKindOfClass:[CPDFSignatureWidgetAnnotation class]]) {
|
|
|
- KMAnnotationGeneralViewController *vc = [[KMAnnotationGeneralViewController alloc] init];
|
|
|
- vc.pdfview = self.pdfView;
|
|
|
- vc.annotationModel = annotationModel;
|
|
|
- vc.view.frame = [self viewControllerRect];
|
|
|
- [self.view addSubview:vc.view];
|
|
|
- self.contentViewController = vc;
|
|
|
+ if (!_isClickFormSignature) {
|
|
|
+ KMAnnotationGeneralViewController *vc = [[KMAnnotationGeneralViewController alloc] init];
|
|
|
+ vc.pdfview = self.pdfView;
|
|
|
+ vc.annotationModel = annotationModel;
|
|
|
+ vc.view.frame = [self viewControllerRect];
|
|
|
+ [self.view addSubview:vc.view];
|
|
|
+ self.contentViewController = vc;
|
|
|
+ }
|
|
|
+ _isClickFormSignature = NO;
|
|
|
} else if ([annotation isKindOfClass:[CPDFLinkAnnotation class]]) {
|
|
|
CPDFLinkAnnotation *linkAnnotation = annotations.firstObject;
|
|
|
NSString *contents = nil;
|
|
@@ -698,6 +701,18 @@
|
|
|
openPropertiesType == KMOpenPropertiesType_ComboBox ||
|
|
|
openPropertiesType == KMOpenPropertiesType_Button) {
|
|
|
|
|
|
+ } else if (openPropertiesType == KMOpenPropertiesType_FormSignatureClick) {
|
|
|
+ self.contentViewController = nil;
|
|
|
+ self.titleLabel.stringValue = @"";
|
|
|
+
|
|
|
+ CPDFAnnotationModel *annotationModel = [[CPDFAnnotationModel alloc] initWithPDFAnnotations:_annotations];
|
|
|
+ KMSignatureAnnotationViewController *vc = [[KMSignatureAnnotationViewController alloc] init];
|
|
|
+ vc.isClickSignatureList = YES;
|
|
|
+ vc.annotationModel = annotationModel;
|
|
|
+ vc.pdfView = self.pdfView;
|
|
|
+ vc.view.frame = [self viewControllerRect];
|
|
|
+ [self.view addSubview:vc.view];
|
|
|
+ self.contentViewController = vc;
|
|
|
}
|
|
|
}
|
|
|
|