Przeglądaj źródła

【EditPDF】补充图片资源

tangchao 8 miesięcy temu
rodzic
commit
62f1d5bb9a
14 zmienionych plików z 918 dodań i 12 usunięć
  1. 22 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontAdd.imageset/Contents.json
  2. 108 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontAdd.imageset/Icon 1.pdf
  3. 108 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontAdd.imageset/Icon.pdf
  4. 89 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontBold.imageset/Component 2-2.pdf
  5. 89 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontBold.imageset/Component 2.pdf
  6. 22 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontBold.imageset/Contents.json
  7. 79 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontItalic.imageset/Component 3-2.pdf
  8. 79 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontItalic.imageset/Component 3.pdf
  9. 22 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontItalic.imageset/Contents.json
  10. 100 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontReduce.imageset/Component 1-2.pdf
  11. 100 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontReduce.imageset/Component 1.pdf
  12. 22 0
      PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontReduce.imageset/Contents.json
  13. 70 7
      PDF Office/PDF Master/Class/PDFTools/EditPDF/Controller/KMEditPDFPopToolBarController.swift
  14. 8 5
      PDF Office/PDF Master/Class/PDFTools/EditPDF/Controller/KMEditPDFPopToolBarController.xib

+ 22 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontAdd.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "filename" : "Icon.pdf",
+      "idiom" : "universal"
+    },
+    {
+      "appearances" : [
+        {
+          "appearance" : "luminosity",
+          "value" : "dark"
+        }
+      ],
+      "filename" : "Icon 1.pdf",
+      "idiom" : "universal"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 108 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontAdd.imageset/Icon 1.pdf

@@ -0,0 +1,108 @@
+%PDF-1.7
+
+1 0 obj
+  << >>
+endobj
+
+2 0 obj
+  << /Length 3 0 R >>
+stream
+/DeviceRGB CS
+/DeviceRGB cs
+q
+1.000000 0.000000 -0.000000 1.000000 18.812500 18.992188 cm
+1.000000 1.000000 1.000000 scn
+7.343750 3.148438 m
+4.187500 3.148438 l
+4.187500 0.000000 l
+3.148438 0.000000 l
+3.148438 3.148438 l
+0.000000 3.148438 l
+0.000000 4.195312 l
+3.148438 4.195312 l
+3.148438 7.343750 l
+4.187500 7.343750 l
+4.187500 4.195312 l
+7.343750 4.195312 l
+7.343750 3.148438 l
+h
+f
+n
+Q
+q
+1.000000 0.000000 -0.000000 1.000000 6.627197 9.090820 cm
+1.000000 1.000000 1.000000 scn
+4.447894 4.499625 m
+7.000000 10.735762 l
+9.552106 4.499625 l
+4.447894 4.499625 l
+h
+4.038649 3.499625 m
+3.015537 0.999625 l
+4.000000 0.999625 l
+4.000000 -0.000375 l
+0.000000 -0.000375 l
+0.000000 0.999625 l
+1.394786 0.999625 l
+6.305877 13.000000 l
+7.694123 13.000000 l
+12.605213 0.999625 l
+14.000000 0.999625 l
+14.000000 -0.000375 l
+10.000000 -0.000375 l
+10.000000 0.999625 l
+10.984464 0.999625 l
+9.961351 3.499625 l
+4.038649 3.499625 l
+h
+f*
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  924
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 32.000000 32.000000 ]
+     /Resources 1 0 R
+     /Contents 2 0 R
+     /Parent 5 0 R
+  >>
+endobj
+
+5 0 obj
+  << /Kids [ 4 0 R ]
+     /Count 1
+     /Type /Pages
+  >>
+endobj
+
+6 0 obj
+  << /Pages 5 0 R
+     /Type /Catalog
+  >>
+endobj
+
+xref
+0 7
+0000000000 65535 f
+0000000010 00000 n
+0000000034 00000 n
+0000001014 00000 n
+0000001036 00000 n
+0000001209 00000 n
+0000001283 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+1342
+%%EOF

+ 108 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontAdd.imageset/Icon.pdf

@@ -0,0 +1,108 @@
+%PDF-1.7
+
+1 0 obj
+  << >>
+endobj
+
+2 0 obj
+  << /Length 3 0 R >>
+stream
+/DeviceRGB CS
+/DeviceRGB cs
+q
+1.000000 0.000000 -0.000000 1.000000 18.812500 18.992188 cm
+0.056471 0.065882 0.080000 scn
+7.343750 3.148438 m
+4.187500 3.148438 l
+4.187500 0.000000 l
+3.148438 0.000000 l
+3.148438 3.148438 l
+0.000000 3.148438 l
+0.000000 4.195312 l
+3.148438 4.195312 l
+3.148438 7.343750 l
+4.187500 7.343750 l
+4.187500 4.195312 l
+7.343750 4.195312 l
+7.343750 3.148438 l
+h
+f
+n
+Q
+q
+1.000000 0.000000 -0.000000 1.000000 6.627106 9.090820 cm
+0.056471 0.065882 0.080000 scn
+4.447894 4.499625 m
+7.000000 10.735762 l
+9.552106 4.499625 l
+4.447894 4.499625 l
+h
+4.038649 3.499625 m
+3.015537 0.999625 l
+4.000000 0.999625 l
+4.000000 -0.000375 l
+0.000000 -0.000375 l
+0.000000 0.999625 l
+1.394786 0.999625 l
+6.305877 13.000000 l
+7.694123 13.000000 l
+12.605213 0.999625 l
+14.000000 0.999625 l
+14.000000 -0.000375 l
+10.000000 -0.000375 l
+10.000000 0.999625 l
+10.984464 0.999625 l
+9.961351 3.499625 l
+4.038649 3.499625 l
+h
+f*
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  924
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 32.000000 32.000000 ]
+     /Resources 1 0 R
+     /Contents 2 0 R
+     /Parent 5 0 R
+  >>
+endobj
+
+5 0 obj
+  << /Kids [ 4 0 R ]
+     /Count 1
+     /Type /Pages
+  >>
+endobj
+
+6 0 obj
+  << /Pages 5 0 R
+     /Type /Catalog
+  >>
+endobj
+
+xref
+0 7
+0000000000 65535 f
+0000000010 00000 n
+0000000034 00000 n
+0000001014 00000 n
+0000001036 00000 n
+0000001209 00000 n
+0000001283 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+1342
+%%EOF

+ 89 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontBold.imageset/Component 2-2.pdf

@@ -0,0 +1,89 @@
+%PDF-1.7
+
+1 0 obj
+  << >>
+endobj
+
+2 0 obj
+  << /Length 3 0 R >>
+stream
+/DeviceRGB CS
+/DeviceRGB cs
+q
+1.000000 0.000000 -0.000000 1.000000 11.401123 9.402344 cm
+1.000000 1.000000 1.000000 scn
+0.000000 0.000336 m
+0.000000 13.194336 l
+3.906000 13.194336 l
+6.570001 13.194336 8.442001 12.294335 8.442001 9.972336 c
+8.442001 8.658336 7.758000 7.506336 6.516001 7.110336 c
+6.516001 7.020336 l
+8.082001 6.714336 9.198001 5.670335 9.198001 3.870335 c
+9.198001 1.278335 7.146000 0.000336 4.194000 0.000336 c
+0.000000 0.000336 l
+h
+1.656000 7.596336 m
+3.618000 7.596336 l
+5.886001 7.596336 6.804001 8.406335 6.804001 9.756336 c
+6.804001 11.304335 5.760000 11.880336 3.690000 11.880336 c
+1.656000 11.880336 l
+1.656000 7.596336 l
+h
+1.656000 1.332336 m
+3.960000 1.332336 l
+6.228001 1.332336 7.560000 2.142336 7.560000 3.924335 c
+7.560000 5.562335 6.282001 6.300335 3.960000 6.300335 c
+1.656000 6.300335 l
+1.656000 1.332336 l
+h
+f
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  848
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 32.000000 32.000000 ]
+     /Resources 1 0 R
+     /Contents 2 0 R
+     /Parent 5 0 R
+  >>
+endobj
+
+5 0 obj
+  << /Kids [ 4 0 R ]
+     /Count 1
+     /Type /Pages
+  >>
+endobj
+
+6 0 obj
+  << /Pages 5 0 R
+     /Type /Catalog
+  >>
+endobj
+
+xref
+0 7
+0000000000 65535 f
+0000000010 00000 n
+0000000034 00000 n
+0000000938 00000 n
+0000000960 00000 n
+0000001133 00000 n
+0000001207 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+1266
+%%EOF

+ 89 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontBold.imageset/Component 2.pdf

@@ -0,0 +1,89 @@
+%PDF-1.7
+
+1 0 obj
+  << >>
+endobj
+
+2 0 obj
+  << /Length 3 0 R >>
+stream
+/DeviceRGB CS
+/DeviceRGB cs
+q
+1.000000 0.000000 -0.000000 1.000000 11.401001 9.402344 cm
+0.056471 0.065882 0.080000 scn
+0.000000 0.000336 m
+0.000000 13.194336 l
+3.906000 13.194336 l
+6.570001 13.194336 8.442001 12.294335 8.442001 9.972336 c
+8.442001 8.658336 7.758000 7.506336 6.516001 7.110336 c
+6.516001 7.020336 l
+8.082001 6.714336 9.198001 5.670335 9.198001 3.870335 c
+9.198001 1.278335 7.146000 0.000336 4.194000 0.000336 c
+0.000000 0.000336 l
+h
+1.656000 7.596336 m
+3.618000 7.596336 l
+5.886001 7.596336 6.804001 8.406335 6.804001 9.756336 c
+6.804001 11.304335 5.760000 11.880336 3.690000 11.880336 c
+1.656000 11.880336 l
+1.656000 7.596336 l
+h
+1.656000 1.332336 m
+3.960000 1.332336 l
+6.228001 1.332336 7.560000 2.142336 7.560000 3.924335 c
+7.560000 5.562335 6.282001 6.300335 3.960000 6.300335 c
+1.656000 6.300335 l
+1.656000 1.332336 l
+h
+f
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  848
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 32.000000 32.000000 ]
+     /Resources 1 0 R
+     /Contents 2 0 R
+     /Parent 5 0 R
+  >>
+endobj
+
+5 0 obj
+  << /Kids [ 4 0 R ]
+     /Count 1
+     /Type /Pages
+  >>
+endobj
+
+6 0 obj
+  << /Pages 5 0 R
+     /Type /Catalog
+  >>
+endobj
+
+xref
+0 7
+0000000000 65535 f
+0000000010 00000 n
+0000000034 00000 n
+0000000938 00000 n
+0000000960 00000 n
+0000001133 00000 n
+0000001207 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+1266
+%%EOF

+ 22 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontBold.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "filename" : "Component 2.pdf",
+      "idiom" : "universal"
+    },
+    {
+      "appearances" : [
+        {
+          "appearance" : "luminosity",
+          "value" : "dark"
+        }
+      ],
+      "filename" : "Component 2-2.pdf",
+      "idiom" : "universal"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 79 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontItalic.imageset/Component 3-2.pdf

@@ -0,0 +1,79 @@
+%PDF-1.7
+
+1 0 obj
+  << >>
+endobj
+
+2 0 obj
+  << /Length 3 0 R >>
+stream
+/DeviceRGB CS
+/DeviceRGB cs
+q
+1.000000 0.000000 -0.000000 1.000000 12.632324 9.909180 cm
+1.000000 1.000000 1.000000 scn
+3.854472 10.781641 m
+2.735321 10.781641 l
+2.735321 12.181641 l
+6.735321 12.181641 l
+6.735321 10.781641 l
+5.303859 10.781641 l
+2.790030 1.399902 l
+4.000000 1.399902 l
+4.000000 -0.000097 l
+0.000000 -0.000097 l
+0.000000 1.399902 l
+1.340643 1.399902 l
+3.854472 10.781641 l
+h
+f*
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  398
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 32.000000 32.000000 ]
+     /Resources 1 0 R
+     /Contents 2 0 R
+     /Parent 5 0 R
+  >>
+endobj
+
+5 0 obj
+  << /Kids [ 4 0 R ]
+     /Count 1
+     /Type /Pages
+  >>
+endobj
+
+6 0 obj
+  << /Pages 5 0 R
+     /Type /Catalog
+  >>
+endobj
+
+xref
+0 7
+0000000000 65535 f
+0000000010 00000 n
+0000000034 00000 n
+0000000488 00000 n
+0000000510 00000 n
+0000000683 00000 n
+0000000757 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+816
+%%EOF

+ 79 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontItalic.imageset/Component 3.pdf

@@ -0,0 +1,79 @@
+%PDF-1.7
+
+1 0 obj
+  << >>
+endobj
+
+2 0 obj
+  << /Length 3 0 R >>
+stream
+/DeviceRGB CS
+/DeviceRGB cs
+q
+1.000000 0.000000 -0.000000 1.000000 12.632339 9.909180 cm
+0.056471 0.065882 0.080000 scn
+3.854472 10.781641 m
+2.735321 10.781641 l
+2.735321 12.181641 l
+6.735321 12.181641 l
+6.735321 10.781641 l
+5.303859 10.781641 l
+2.790030 1.399902 l
+4.000000 1.399902 l
+4.000000 -0.000097 l
+0.000000 -0.000097 l
+0.000000 1.399902 l
+1.340643 1.399902 l
+3.854472 10.781641 l
+h
+f*
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  398
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 32.000000 32.000000 ]
+     /Resources 1 0 R
+     /Contents 2 0 R
+     /Parent 5 0 R
+  >>
+endobj
+
+5 0 obj
+  << /Kids [ 4 0 R ]
+     /Count 1
+     /Type /Pages
+  >>
+endobj
+
+6 0 obj
+  << /Pages 5 0 R
+     /Type /Catalog
+  >>
+endobj
+
+xref
+0 7
+0000000000 65535 f
+0000000010 00000 n
+0000000034 00000 n
+0000000488 00000 n
+0000000510 00000 n
+0000000683 00000 n
+0000000757 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+816
+%%EOF

+ 22 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontItalic.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "filename" : "Component 3.pdf",
+      "idiom" : "universal"
+    },
+    {
+      "appearances" : [
+        {
+          "appearance" : "luminosity",
+          "value" : "dark"
+        }
+      ],
+      "filename" : "Component 3-2.pdf",
+      "idiom" : "universal"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 100 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontReduce.imageset/Component 1-2.pdf

@@ -0,0 +1,100 @@
+%PDF-1.7
+
+1 0 obj
+  << >>
+endobj
+
+2 0 obj
+  << /Length 3 0 R >>
+stream
+/DeviceRGB CS
+/DeviceRGB cs
+q
+1.000000 0.000000 -0.000000 1.000000 18.812500 22.140625 cm
+1.000000 1.000000 1.000000 scn
+7.343758 0.000000 m
+0.000000 0.000000 l
+0.000005 1.046875 l
+7.343758 1.046875 l
+7.343758 0.000000 l
+h
+f
+n
+Q
+q
+1.000000 0.000000 -0.000000 1.000000 6.627197 9.090820 cm
+1.000000 1.000000 1.000000 scn
+4.447894 4.499625 m
+7.000000 10.735762 l
+9.552106 4.499625 l
+4.447894 4.499625 l
+h
+4.038649 3.499625 m
+3.015537 0.999625 l
+4.000000 0.999625 l
+4.000000 -0.000375 l
+0.000000 -0.000375 l
+0.000000 0.999625 l
+1.394786 0.999625 l
+6.305877 13.000000 l
+7.694123 13.000000 l
+12.605213 0.999625 l
+14.000000 0.999625 l
+14.000000 -0.000375 l
+10.000000 -0.000375 l
+10.000000 0.999625 l
+10.984464 0.999625 l
+9.961351 3.499625 l
+4.038649 3.499625 l
+h
+f*
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  764
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 32.000000 32.000000 ]
+     /Resources 1 0 R
+     /Contents 2 0 R
+     /Parent 5 0 R
+  >>
+endobj
+
+5 0 obj
+  << /Kids [ 4 0 R ]
+     /Count 1
+     /Type /Pages
+  >>
+endobj
+
+6 0 obj
+  << /Pages 5 0 R
+     /Type /Catalog
+  >>
+endobj
+
+xref
+0 7
+0000000000 65535 f
+0000000010 00000 n
+0000000034 00000 n
+0000000854 00000 n
+0000000876 00000 n
+0000001049 00000 n
+0000001123 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+1182
+%%EOF

+ 100 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontReduce.imageset/Component 1.pdf

@@ -0,0 +1,100 @@
+%PDF-1.7
+
+1 0 obj
+  << >>
+endobj
+
+2 0 obj
+  << /Length 3 0 R >>
+stream
+/DeviceRGB CS
+/DeviceRGB cs
+q
+1.000000 0.000000 -0.000000 1.000000 18.812485 22.140625 cm
+0.056471 0.065882 0.080000 scn
+7.343758 0.000000 m
+0.000000 0.000000 l
+0.000005 1.046875 l
+7.343758 1.046875 l
+7.343758 0.000000 l
+h
+f
+n
+Q
+q
+1.000000 0.000000 -0.000000 1.000000 6.627106 9.090820 cm
+0.056471 0.065882 0.080000 scn
+4.447894 4.499625 m
+7.000000 10.735762 l
+9.552106 4.499625 l
+4.447894 4.499625 l
+h
+4.038649 3.499625 m
+3.015537 0.999625 l
+4.000000 0.999625 l
+4.000000 -0.000375 l
+0.000000 -0.000375 l
+0.000000 0.999625 l
+1.394786 0.999625 l
+6.305877 13.000000 l
+7.694123 13.000000 l
+12.605213 0.999625 l
+14.000000 0.999625 l
+14.000000 -0.000375 l
+10.000000 -0.000375 l
+10.000000 0.999625 l
+10.984464 0.999625 l
+9.961351 3.499625 l
+4.038649 3.499625 l
+h
+f*
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  764
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 32.000000 32.000000 ]
+     /Resources 1 0 R
+     /Contents 2 0 R
+     /Parent 5 0 R
+  >>
+endobj
+
+5 0 obj
+  << /Kids [ 4 0 R ]
+     /Count 1
+     /Type /Pages
+  >>
+endobj
+
+6 0 obj
+  << /Pages 5 0 R
+     /Type /Catalog
+  >>
+endobj
+
+xref
+0 7
+0000000000 65535 f
+0000000010 00000 n
+0000000034 00000 n
+0000000854 00000 n
+0000000876 00000 n
+0000001049 00000 n
+0000001123 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+1182
+%%EOF

+ 22 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/EditPDF/KMImageNameEditPDFFontReduce.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "filename" : "Component 1.pdf",
+      "idiom" : "universal"
+    },
+    {
+      "appearances" : [
+        {
+          "appearance" : "luminosity",
+          "value" : "dark"
+        }
+      ],
+      "filename" : "Component 1-2.pdf",
+      "idiom" : "universal"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 70 - 7
PDF Office/PDF Master/Class/PDFTools/EditPDF/Controller/KMEditPDFPopToolBarController.swift

@@ -36,6 +36,8 @@ class KMEditPDFToolbarItemView: NSView {
         }
     }
     
+    var obj: AnyObject?
+    
     convenience init() {
         self.init(frame: .zero)
         self.addSubview(self.contentBox_)
@@ -88,6 +90,7 @@ class KMEditPDFColorView: NSView {
         view.wantsLayer = true
         view.layer?.cornerRadius = 10
         view.layer?.masksToBounds = true
+        view.image = NSImage(named: NSImage.colorPanelName)
         return view
     }()
     
@@ -182,11 +185,12 @@ class KMEditPDFToolbarView: NSView {
         let leftMargin = self.inset.left
         let topMargin = self.inset.top
         var x = leftMargin
+        let vSpace: CGFloat = 2
         for (i, sv) in self.subviews.enumerated() {
             if let size = self.delegate?.toolbarView?(self, sizeForItemAt: i) {
                 let y = topMargin
                 var frame = NSRect(x: x, y: y, width: size.width, height: size.height)
-                x += size.width
+                x += (size.width + vSpace)
                 sv.frame = frame
             }
         }
@@ -277,6 +281,10 @@ class KMEditPDFPopToolBarController: NSViewController {
         
         toolbarView.reloadData()
     }
+    
+    @objc func _nextButtonAction(_ sender: AnyObject) {
+        
+    }
 }
 
 extension KMEditPDFPopToolBarController: KMEditPDFToolbarViewDelegate {
@@ -292,14 +300,34 @@ extension KMEditPDFPopToolBarController: KMEditPDFToolbarViewDelegate {
             colorView.view = view
             return colorView
         } else if itemKey == .fontStyle {
-            let colorView = KMEditPDFToolbarItemView()
-            colorView.wantsLayer = true
-            colorView.layer?.backgroundColor = NSColor.blue.cgColor
-            return colorView
+            let fontStyleView = KMEditPDFToolbarItemView()
+
+            let viewC = KMDesignSelect.init(withType: .PopButton)
+            fontStyleView.view = viewC.view
+            fontStyleView.obj = viewC
+
+            viewC.removeAllItems()
+            viewC.addItems(withObjectValues: ["1pt", "2pt", "4pt", "6pt", "8pt"])
+            viewC.selectItem(at: 0)
+            viewC.delete = self
+            return fontStyleView
         }
         let colorView = KMEditPDFToolbarItemView()
-        colorView.wantsLayer = true
-        colorView.layer?.backgroundColor = NSColor.green.cgColor
+        let viewC = KMDesignButton(withType: .Image)
+        colorView.view = viewC.view
+        colorView.obj = viewC
+        viewC.pagination()
+        viewC.target = self
+        viewC.action = #selector(_nextButtonAction)
+        if itemKey == .fontAdd {
+            viewC.image = NSImage(named: "KMImageNameEditPDFFontAdd")!
+        } else if itemKey == .fontReduce {
+            viewC.image = NSImage(named: "KMImageNameEditPDFFontReduce")!
+        } else if itemKey == .fontBold {
+            viewC.image = NSImage(named: "KMImageNameEditPDFFontBold")!
+        } else if itemKey == .fontItalic {
+            viewC.image = NSImage(named: "KMImageNameEditPDFFontItalic")!
+        }
         return colorView
     }
     
@@ -313,3 +341,38 @@ extension KMEditPDFPopToolBarController: KMEditPDFToolbarViewDelegate {
         return NSMakeSize(32, 32)
     }
 }
+
+extension KMEditPDFPopToolBarController: KMSelectPopButtonDelegate {
+    func km_comboBoxSelectionDidChange(_ obj: KMDesignSelect) {
+//        if (self.lineWidthVC == obj) {
+//            let index = self.lineWidthVC.indexOfSelectedItem
+//            if index < 0 {
+//                return
+//            }
+//
+//            let width = self.lineWidthVC.stringValue.replacingOccurrences(of: "pt", with: "")
+//            if annotationModel.stampAnnotationType() == .signDot {
+//                annotationModel.setNoteWidth(CGFloat(width.stringToCGFloat())*5)
+//                annotationModel.setNoteHeight(CGFloat(width.stringToCGFloat())*5)
+//            } else {
+//                annotationModel.setLineWidth(width.stringToCGFloat())
+//            }
+//        } else if (self.opacityVC == obj) {
+//            let index = self.opacityVC.indexOfSelectedItem
+//            if index < 0 {
+//                return
+//            }
+//
+//            let opacity = self.opacityVC.stringValue.replacingOccurrences(of: "%", with: "")
+//            self.opacitySlider.floatValue = Float(opacity.stringToCGFloat()/100)
+//            annotationModel.setOpacity(opacity.stringToCGFloat()/100)
+//        }
+//
+//        refreshUI()
+//        updateAnnotation()
+    }
+    
+    func km_controlTextDidEndEditing(_ obj: KMDesignSelect) {
+        
+    }
+}

+ 8 - 5
PDF Office/PDF Master/Class/PDFTools/EditPDF/Controller/KMEditPDFPopToolBarController.xib

@@ -1,10 +1,12 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11134" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21507" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11134"/>
+        <deployment identifier="macosx"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21507"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMEditPDFPopToolBarController" customModuleProvider="target">
+        <customObject id="-2" userLabel="File's Owner" customClass="KMEditPDFPopToolBarController" customModule="PDF_Reader_Pro" customModuleProvider="target">
             <connections>
                 <outlet property="view" destination="Hz6-mo-xeY" id="0bl-1N-x8E"/>
             </connections>
@@ -12,8 +14,9 @@
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
         <customView id="Hz6-mo-xeY">
-            <rect key="frame" x="0.0" y="0.0" width="480" height="272"/>
+            <rect key="frame" x="0.0" y="0.0" width="480" height="44"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+            <point key="canvasLocation" x="95" y="-36"/>
         </customView>
     </objects>
 </document>