@@ -43,7 +43,10 @@ class ReaderModel {
this.kmpdfFactory = kmpdfFactory
this.filename = filename
- this.password = password
+ this.password = when (kmpdfFactory?.needPassWord()) {
+ false -> ""
+ else -> password
+ }
this.isInitialized = true
}