123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // KMPageEditSettingBaseModel.swift
- // PDF Master
- //
- // 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 {
- if (fileName == nil || fileName.isEmpty) {
- return ""
- }
-
- var result: String = ""
- let pathExtension = fileName.components(separatedBy: ".").last
- let files = fileName.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 fileName
- }
- }
-
- var pageCount: Int = 0
- }
|