ViewController.swift 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // ViewController.swift
  3. // ProcessCheckFile
  4. //
  5. // Created by 朱东勇 on 2022/11/17.
  6. //
  7. import Cocoa
  8. class ViewController: NSViewController {
  9. override func viewDidLoad() {
  10. super.viewDidLoad()
  11. // ProcessFont.processRTFAutoFile(.FontNameWithSize)
  12. // ProcessFont.processRTFAutoFile(.Color)
  13. // ProcessFont.processRTFAutoFile(.SpecialCharacter)
  14. // ProcessFont.processRTFAutoFile(.Chinese)
  15. // ProcessThumbnal.process("/Users/zhudongyong/Desktop/文档/对照文档/PDFConvert_China_Auto_Test.rtf")
  16. let fileAttributy = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/125-years-of-topo-mapping.pdf")
  17. let symbAttributy = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/125-years-of-topo-mapping的替身.pdf")
  18. let fileAttributy2 = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/nrcs141p2_018306.pdf")
  19. let symbAttributy2 = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/nrcs141p2_018306的替身.pdf")
  20. let url = URL.init(filePath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/125-years-of-topo-mapping的替身.pdf")
  21. let string = try! NSDictionary.init(contentsOf: url, error: ())
  22. NSLog("%@", fileAttributy)
  23. NSLog("%@", symbAttributy)
  24. NSLog("%@", fileAttributy2)
  25. NSLog("%@", symbAttributy2)
  26. NSLog("%@", string)
  27. }
  28. override var representedObject: Any? {
  29. didSet {
  30. // Update the view, if already loaded.
  31. }
  32. }
  33. }