|
@@ -122,8 +122,16 @@ public class CompdfkitFlutterPlugin: NSObject, FlutterPlugin, CPDFViewBaseContro
|
|
|
}
|
|
|
} else {
|
|
|
if innerKey == "initialViewMode" {
|
|
|
- if innerValue as! String == "View" {
|
|
|
+ if innerValue as! String == "viewer" {
|
|
|
configuration.enterToolModel = .viewer
|
|
|
+ } else if innerValue as! String == "annotations" {
|
|
|
+ configuration.enterToolModel = .annotation
|
|
|
+ } else if innerValue as! String == "contentEditor" {
|
|
|
+ configuration.enterToolModel = .edit
|
|
|
+ } else if innerValue as! String == "forms" {
|
|
|
+ configuration.enterToolModel = .form
|
|
|
+ } else if innerValue as! String == "digitalSignatures" {
|
|
|
+ configuration.enterToolModel = .signature
|
|
|
}
|
|
|
}
|
|
|
}
|