|
@@ -217,15 +217,19 @@ extension KMMergeWindowController {
|
|
|
if self.oldPDFDocument.outlineRoot() == nil {
|
|
|
self.oldPDFDocument.setNewOutlineRoot()
|
|
|
}
|
|
|
-// if allPage {
|
|
|
- var insertIndex = 0
|
|
|
- for i in 0..<rootPDFOutlineArray.count {
|
|
|
- let rootOutline = rootPDFOutlineArray[i]
|
|
|
- for j in 0..<rootOutline.numberOfChildren {
|
|
|
- self.oldPDFDocument.outlineRoot().insertChild(rootOutline.child(at: j)!, at: UInt(insertIndex))
|
|
|
- insertIndex = insertIndex + 1
|
|
|
- }
|
|
|
- }
|
|
|
+ if allPage {
|
|
|
+// var insertIndex = 0
|
|
|
+// for i in 0..<rootPDFOutlineArray.count {
|
|
|
+// let rootOutline = rootPDFOutlineArray[i]
|
|
|
+// for j in 0..<rootOutline.numberOfChildren {
|
|
|
+// let outline = rootOutline.child(at: j)
|
|
|
+// if outline != nil {
|
|
|
+// self.oldPDFDocument.outlineRoot().insertChild(outline!, at: UInt(insertIndex))
|
|
|
+// insertIndex = insertIndex + 1
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+ }
|
|
|
|
|
|
self.handleReDraw()
|
|
|
|