     
     let userDeaults = UserDefaults.standard
     
+//    縦書き
+    var verticalWriting = false
+    
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
         

            
                if let document = PDFDocument(url: (self.document?.fileURL)!) {
                    self.pdfView.document = document
                    self.moveToLastReadingProsess()
                }
            } else {

        pdfView.autoScales = true
        pdfView.displaysPageBreaks = false
        pdfView.displayBox = .cropBox
        pdfView.displayMode = .singlePageContinuous
        
        
        let center = NotificationCenter.default
