|
@@ -551,6 +551,10 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
@objc func splitMenuAction(sender: AnyObject?) {
|
|
@objc func splitMenuAction(sender: AnyObject?) {
|
|
let model = KMPageEditSplitSettingModel()
|
|
let model = KMPageEditSplitSettingModel()
|
|
model.documentURL = self.listView?.document.documentURL
|
|
model.documentURL = self.listView?.document.documentURL
|
|
|
|
+ if let pagecnt = self.thumbnailView.document?.pageCount {
|
|
|
|
+ model.pageCount = Int(pagecnt)
|
|
|
|
+ }
|
|
|
|
+
|
|
model.fileName = model.documentURL.lastPathComponent
|
|
model.fileName = model.documentURL.lastPathComponent
|
|
model.pathExtension = model.fileName.components(separatedBy: ".").last
|
|
model.pathExtension = model.fileName.components(separatedBy: ".").last
|
|
|
|
|