123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // KMPageEditSettingBaseModel.swift
- // PDF Reader Pro
- //
- // Created by tangchao on 2023/1/12.
- //
- import Cocoa
- class KMPageEditSettingBaseModel: NSObject {
- var documentURL: URL?
- var password: String = ""
-
- var fileName: String?
- var pathExtension: String?
- var outputFileNameDeletePathExtension: String!
- var outputFileName: String {
- get {
- guard let data = self.fileName, data.isEmpty == false else {
- return ""
- }
-
- var result: String = ""
- let pathExtension = data.components(separatedBy: ".").last
- let files = data.split(separator: ".")
- for i in 0 ..< files.count-1 {
- let file: String = String(files[i])
- result.append(file)
- if (i == files.count-2) {
- result.append(".")
- }
- }
-
- return data
- }
- }
-
- var pageCount: Int = 0
- }
|