Browse Source

PDFTools(iOS) - 编辑模块内容处理

chenyu 1 year ago
parent
commit
6db19c5239

+ 16 - 0
compdfkit-tools/compdfkit-tools.xcodeproj/project.pbxproj

@@ -28,6 +28,8 @@
 		4F5986922A03411700F06A1B /* CPDFDropDownMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F5986902A03411700F06A1B /* CPDFDropDownMenu.m */; };
 		4F6C796A29FBD532008C9501 /* CPDFEditFontNameSelectView.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F6C796829FBD532008C9501 /* CPDFEditFontNameSelectView.h */; };
 		4F6C796B29FBD532008C9501 /* CPDFEditFontNameSelectView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F6C796929FBD532008C9501 /* CPDFEditFontNameSelectView.m */; };
+		4F7D57EF2A0D0D76008C76D3 /* CPDFToolsViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F7D57ED2A0D0D76008C76D3 /* CPDFToolsViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };
+		4F7D57F02A0D0D76008C76D3 /* CPDFToolsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F7D57EE2A0D0D76008C76D3 /* CPDFToolsViewController.m */; };
 		4FD34DCB2A0B2752005CEAB6 /* CNavigationBarTitleButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 4FD34DC92A0B2752005CEAB6 /* CNavigationBarTitleButton.h */; settings = {ATTRIBUTES = (Public, ); }; };
 		4FD34DCC2A0B2752005CEAB6 /* CNavigationBarTitleButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 4FD34DCA2A0B2752005CEAB6 /* CNavigationBarTitleButton.m */; };
 		4FD34DD02A0B3F51005CEAB6 /* CPDFPopMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 4FD34DCE2A0B3F51005CEAB6 /* CPDFPopMenu.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -235,6 +237,8 @@
 		4F5986902A03411700F06A1B /* CPDFDropDownMenu.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CPDFDropDownMenu.m; sourceTree = "<group>"; };
 		4F6C796829FBD532008C9501 /* CPDFEditFontNameSelectView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CPDFEditFontNameSelectView.h; sourceTree = "<group>"; };
 		4F6C796929FBD532008C9501 /* CPDFEditFontNameSelectView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CPDFEditFontNameSelectView.m; sourceTree = "<group>"; };
+		4F7D57ED2A0D0D76008C76D3 /* CPDFToolsViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CPDFToolsViewController.h; sourceTree = "<group>"; };
+		4F7D57EE2A0D0D76008C76D3 /* CPDFToolsViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CPDFToolsViewController.m; sourceTree = "<group>"; };
 		4FD34DC92A0B2752005CEAB6 /* CNavigationBarTitleButton.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNavigationBarTitleButton.h; sourceTree = "<group>"; };
 		4FD34DCA2A0B2752005CEAB6 /* CNavigationBarTitleButton.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNavigationBarTitleButton.m; sourceTree = "<group>"; };
 		4FD34DCE2A0B3F51005CEAB6 /* CPDFPopMenu.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CPDFPopMenu.h; sourceTree = "<group>"; };
@@ -436,6 +440,15 @@
 			path = Edit;
 			sourceTree = "<group>";
 		};
+		4F7D57EC2A0D0D65008C76D3 /* Tools */ = {
+			isa = PBXGroup;
+			children = (
+				4F7D57ED2A0D0D76008C76D3 /* CPDFToolsViewController.h */,
+				4F7D57EE2A0D0D76008C76D3 /* CPDFToolsViewController.m */,
+			);
+			path = Tools;
+			sourceTree = "<group>";
+		};
 		4F9FC9B129FA01B0006A2883 /* CPDFEditToolBar */ = {
 			isa = PBXGroup;
 			children = (
@@ -862,6 +875,7 @@
 		F32DA14729ED904300E19ECA /* Controls */ = {
 			isa = PBXGroup;
 			children = (
+				4F7D57EC2A0D0D65008C76D3 /* Tools */,
 				F32DA14829ED904300E19ECA /* BOTA */,
 				F32DA14B29ED904300E19ECA /* PDFNavigationController */,
 			);
@@ -1104,6 +1118,7 @@
 				F3877E1629E6764E00037D92 /* CPDFDisplayViewController.h in Headers */,
 				F32DA19129ED908800E19ECA /* CPDFMoreListViewController.h in Headers */,
 				F38F5B632A038B0400D0EEFD /* CPDFListView+Private.h in Headers */,
+				4F7D57EF2A0D0D76008C76D3 /* CPDFToolsViewController.h in Headers */,
 				F32DA17029ED904300E19ECA /* CPDFThumbnailViewCell.h in Headers */,
 				4FD34DCB2A0B2752005CEAB6 /* CNavigationBarTitleButton.h in Headers */,
 				4FD34DDC2A0B6532005CEAB6 /* CPDFPopMenuView.h in Headers */,
@@ -1316,6 +1331,7 @@
 				F35DD18B2A067E7500B57F5B /* CPDFListView+UndoManager.m in Sources */,
 				F32DA17629ED904300E19ECA /* CPDFInfoViewController.m in Sources */,
 				C91BE7CE2A037A490038F2BC /* CPDFInkTopToolBar.m in Sources */,
+				4F7D57F02A0D0D76008C76D3 /* CPDFToolsViewController.m in Sources */,
 				C91BE7D52A039AC40038F2BC /* CPDFSignatureViewController.m in Sources */,
 				C918CE9C29F8EE7200D43974 /* CPDFHighlightViewController.m in Sources */,
 				C918CEE029FB943400D43974 /* CPDFArrowStyleCell.m in Sources */,

+ 33 - 0
compdfkit-tools/compdfkit-tools/Common/Controls/Tools/CPDFToolsViewController.h

@@ -0,0 +1,33 @@
+//
+//  CPDFToolsViewController.h
+//  compdfkit-tools
+//
+//  Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
+//
+//  THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
+//  AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
+//  UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
+//  This notice may not be removed from this file.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@class CPDFToolsViewController;
+
+@protocol CPDFToolsViewControllerDelegate <NSObject>
+
+@required
+
+- (void)CPDFToolsViewControllerDismiss:(CPDFToolsViewController *) viewController selectItemAtIndex:(NSUInteger)selectIndex;
+
+@end
+
+@interface CPDFToolsViewController : UIViewController
+
+@property (nonatomic, weak) id<CPDFToolsViewControllerDelegate> delegate;
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 146 - 0
compdfkit-tools/compdfkit-tools/Common/Controls/Tools/CPDFToolsViewController.m

@@ -0,0 +1,146 @@
+//
+//  CPDFToolsViewController.m
+//  compdfkit-tools
+//
+//  Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
+//
+//  THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
+//  AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
+//  UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
+//  This notice may not be removed from this file.
+//
+
+#import "CPDFToolsViewController.h"
+#import "CPDFColorUtils.h"
+#import "CPDFDisplayTableViewCell.h"
+
+@interface CPDFToolsViewController ()<UITableViewDelegate,UITableViewDataSource>
+
+@property (nonatomic, strong) UIButton *backBtn;
+
+@property (nonatomic, strong) UILabel *titleLabel;
+
+@property (nonatomic, strong) UITableView* tableView;
+
+@property (nonatomic, strong) NSMutableArray * iconArr;
+
+@property (nonatomic, strong) NSMutableArray * titleArr;
+@property (nonatomic, strong) UIView * splitView;
+
+@end
+
+@implementation CPDFToolsViewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    
+    [self updatePreferredContentSizeWithTraitCollection:self.traitCollection];
+    
+    self.backBtn = [[UIButton alloc] init];
+    self.backBtn.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
+    [self.backBtn setImage:[UIImage imageNamed:@"CPDFAnnotationBaseImageBack" inBundle:[NSBundle bundleForClass:self.class] compatibleWithTraitCollection:nil] forState:UIControlStateNormal];
+    [self.backBtn addTarget:self action:@selector(buttonItemClicked_back:) forControlEvents:UIControlEventTouchUpInside];
+    [self.view addSubview:self.backBtn];
+    
+    self.titleLabel = [[UILabel alloc] init];
+    self.titleLabel.text =  NSLocalizedString(@"Tools", nil);
+    self.titleLabel.font = [UIFont boldSystemFontOfSize:17];
+    self.titleLabel.adjustsFontSizeToFitWidth = YES;
+    self.titleLabel.textAlignment = NSTextAlignmentCenter;
+    [self.view addSubview:self.titleLabel];
+    
+//    self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
+    self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds];
+    self.tableView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
+    self.tableView.delegate = self;
+    self.tableView.dataSource = self;
+    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
+    self.tableView.backgroundColor = [UIColor whiteColor];
+    self.view.backgroundColor = [UIColor whiteColor];
+    
+    [self.view addSubview:self.tableView];
+    [self.tableView reloadData];
+    
+    self.titleArr = [[NSMutableArray alloc] initWithObjects:@"Viewer",@"Edit", nil];
+    self.iconArr = [[NSMutableArray alloc] initWithObjects:@"CNavigationImageNameViewer",@"CNavigationImageNameEditTool",nil];
+    
+    self.splitView = [[UIView alloc] init];
+    self.splitView.backgroundColor = [UIColor colorWithRed:0. green:0. blue:0. alpha:0.1];
+    [self.view addSubview:self.splitView];
+    
+}
+
+- (void)viewWillLayoutSubviews {
+    self.titleLabel.frame = CGRectMake((self.view.frame.size.width - 120)/2, 5, 120, 50);
+    self.backBtn.frame = CGRectMake(self.view.frame.size.width - 60, 5, 50, 50);
+    self.tableView.frame = CGRectMake(0, 60, self.view.frame.size.width, self.view.frame.size.height - 50);
+    self.splitView.frame = CGRectMake(0, CGRectGetMaxY(self.titleLabel.frame), self.view.frame.size.width, 1);
+}
+
+- (void)willTransitionToTraitCollection:(UITraitCollection *)newCollection withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {
+    [super willTransitionToTraitCollection:newCollection withTransitionCoordinator:coordinator];
+    [self updatePreferredContentSizeWithTraitCollection:newCollection];
+}
+
+- (void)updatePreferredContentSizeWithTraitCollection:(UITraitCollection *)traitCollection
+{
+    self.preferredContentSize = CGSizeMake(self.view.bounds.size.width,self.view.bounds.size.height * 0.25);
+
+}
+
+- (void)buttonItemClicked_back:(UIButton *)button {
+    [self dismissViewControllerAnimated:YES completion:^{
+            
+    }];
+}
+
+
+#pragma mark - UITableViewDataSource
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
+    return 1;
+}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+    return 2;
+}
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
+    
+    CPDFDisplayTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
+    if (!cell) {
+        cell = [[CPDFDisplayTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
+    }
+    cell.titleLabel.text = self.titleArr[indexPath.row];
+    cell.iconImageView.image = [UIImage imageNamed:self.iconArr[indexPath.row] inBundle:[NSBundle bundleForClass:self.class] compatibleWithTraitCollection:nil];
+    if(indexPath.row == self.iconArr.count - 1) {
+        cell.hiddenSplitView = YES;
+    }else{
+        cell.hiddenSplitView = NO;
+    }
+    
+    return cell;
+}
+
+- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
+    return 44;
+}
+
+#pragma mark - UITableViewDelegate
+
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
+    [tableView deselectRowAtIndexPath:indexPath animated:YES];
+    
+    [self dismissViewControllerAnimated:YES completion:^{
+            
+    }];
+    
+    if(self.delegate && [self.delegate respondsToSelector:@selector(CPDFToolsViewControllerDismiss:selectItemAtIndex:)]){
+        [self.delegate CPDFToolsViewControllerDismiss:self selectItemAtIndex:indexPath.row];
+    }
+    
+}
+
+
+
+@end

+ 2 - 0
compdfkit-tools/compdfkit-tools/Common/Views/PDFNavigationBar/CNavigationBarTitleButton.m

@@ -23,6 +23,8 @@
         
         [self.titleLabel setTextAlignment:NSTextAlignmentRight];
         
+        self.titleLabel.numberOfLines = 0;
+        
         [self setAdjustsImageWhenDisabled:NO];
         
         [self.imageView setContentMode:UIViewContentModeCenter];

+ 21 - 0
compdfkit-tools/compdfkit-tools/Common/Views/PDFNavigationRightView/NavigationRightImage.xcassets/CNavigationImageNameEditTool.imageset/Contents.json

@@ -0,0 +1,21 @@
+{
+  "images" : [
+    {
+      "filename" : "edittool.pdf",
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 107 - 0
compdfkit-tools/compdfkit-tools/Common/Views/PDFNavigationRightView/NavigationRightImage.xcassets/CNavigationImageNameEditTool.imageset/edittool.pdf

@@ -0,0 +1,107 @@
+%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 3.000000 2.189331 cm
+0.262745 0.278431 0.301961 scn
+5.340990 10.795057 m
+5.148984 10.603051 l
+5.124401 10.332629 l
+4.770847 6.443542 l
+4.689365 5.547238 l
+5.585669 5.628720 l
+9.474756 5.982273 l
+9.745178 6.006857 l
+9.937184 6.198863 l
+18.422466 14.684145 l
+18.952795 15.214475 l
+18.422466 15.744804 l
+14.886931 19.280338 l
+14.356602 19.810669 l
+13.826271 19.280338 l
+5.340990 10.795057 l
+h
+6.346169 7.204042 m
+6.593657 9.926403 l
+14.356602 17.689348 l
+16.831474 15.214475 l
+9.068530 7.451530 l
+6.346169 7.204042 l
+h
+0.750000 17.500006 m
+0.000000 17.500006 l
+0.000000 16.750006 l
+0.000000 0.750006 l
+0.000000 0.000006 l
+0.750000 0.000006 l
+16.750000 0.000006 l
+17.500000 0.000006 l
+17.500000 0.750006 l
+17.500000 8.750006 l
+16.000000 8.750006 l
+16.000000 1.500006 l
+1.500000 1.500006 l
+1.500000 16.000006 l
+8.750000 16.000006 l
+8.750000 17.500006 l
+0.750000 17.500006 l
+h
+f*
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  945
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 24.000000 24.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
+0000001035 00000 n
+0000001057 00000 n
+0000001230 00000 n
+0000001304 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+1363
+%%EOF

+ 21 - 0
compdfkit-tools/compdfkit-tools/Common/Views/PDFNavigationRightView/NavigationRightImage.xcassets/CNavigationImageNameViewer.imageset/Contents.json

@@ -0,0 +1,21 @@
+{
+  "images" : [
+    {
+      "filename" : "pageset.pdf",
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 199 - 0
compdfkit-tools/compdfkit-tools/Common/Views/PDFNavigationRightView/NavigationRightImage.xcassets/CNavigationImageNameViewer.imageset/pageset.pdf

@@ -0,0 +1,199 @@
+%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 1.999836 3.000000 cm
+0.262745 0.278431 0.301961 scn
+20.000000 9.000000 m
+20.643984 8.615572 l
+20.873470 9.000000 l
+20.643984 9.384428 l
+20.000000 9.000000 l
+h
+0.000000 9.000000 m
+-0.643984 9.384428 l
+-0.873469 9.000000 l
+-0.643984 8.615572 l
+0.000000 9.000000 l
+h
+20.000000 9.000000 m
+19.356016 9.384428 19.356102 9.384571 19.356169 9.384684 c
+19.356169 9.384684 19.356220 9.384769 19.356220 9.384770 c
+19.356222 9.384771 19.356155 9.384660 19.356020 9.384436 c
+19.355751 9.383987 19.355213 9.383093 19.354408 9.381756 c
+19.352797 9.379084 19.350117 9.374649 19.346378 9.368508 c
+19.338900 9.356226 19.327196 9.337128 19.311373 9.311666 c
+19.279718 9.260735 19.231606 9.184395 19.167873 9.086277 c
+19.040356 8.889959 18.850628 8.606958 18.605408 8.266227 c
+18.114002 7.583417 17.404655 6.675618 16.531416 5.770841 c
+14.750543 3.925651 12.438823 2.249999 10.000000 2.249999 c
+10.000000 0.749999 l
+13.084024 0.749999 15.772305 2.824348 17.610720 4.729158 c
+18.547125 5.699381 19.302244 6.666582 19.822893 7.390023 c
+20.083702 7.752417 20.286898 8.055352 20.425797 8.269191 c
+20.495274 8.376152 20.548744 8.460944 20.585369 8.519876 c
+20.603685 8.549347 20.617796 8.572362 20.627598 8.588461 c
+20.632500 8.596512 20.636324 8.602835 20.639059 8.607371 c
+20.640427 8.609640 20.641521 8.611462 20.642344 8.612831 c
+20.642754 8.613516 20.643097 8.614087 20.643370 8.614544 c
+20.643507 8.614773 20.643660 8.615029 20.643728 8.615144 c
+20.643864 8.615372 20.643984 8.615572 20.000000 9.000000 c
+h
+10.000000 2.249999 m
+7.561177 2.249999 5.249457 3.925651 3.468584 5.770841 c
+2.595344 6.675618 1.885998 7.583417 1.394592 8.266227 c
+1.149373 8.606958 0.959645 8.889959 0.832126 9.086277 c
+0.768394 9.184395 0.720281 9.260735 0.688628 9.311666 c
+0.672803 9.337128 0.661100 9.356226 0.653622 9.368508 c
+0.649884 9.374649 0.647203 9.379084 0.645592 9.381756 c
+0.644786 9.383093 0.644248 9.383987 0.643980 9.384436 c
+0.643845 9.384660 0.643778 9.384771 0.643779 9.384770 c
+0.643779 9.384769 0.643831 9.384684 0.643831 9.384684 c
+0.643899 9.384571 0.643984 9.384428 0.000000 9.000000 c
+-0.643984 8.615572 -0.643864 8.615372 -0.643728 8.615144 c
+-0.643660 8.615029 -0.643506 8.614773 -0.643369 8.614544 c
+-0.643096 8.614087 -0.642754 8.613516 -0.642343 8.612831 c
+-0.641522 8.611462 -0.640427 8.609640 -0.639059 8.607371 c
+-0.636324 8.602835 -0.632500 8.596512 -0.627599 8.588461 c
+-0.617797 8.572362 -0.603685 8.549347 -0.585370 8.519876 c
+-0.548743 8.460944 -0.495274 8.376152 -0.425797 8.269191 c
+-0.286898 8.055352 -0.083701 7.752417 0.177108 7.390023 c
+0.697756 6.666582 1.452876 5.699381 2.389280 4.729158 c
+4.227695 2.824348 6.915976 0.749999 10.000000 0.749999 c
+10.000000 2.249999 l
+h
+0.000000 9.000000 m
+0.643984 8.615572 0.643899 8.615429 0.643831 8.615314 c
+0.643831 8.615314 0.643779 8.615229 0.643779 8.615229 c
+0.643778 8.615228 0.643845 8.615339 0.643980 8.615564 c
+0.644248 8.616011 0.644786 8.616907 0.645592 8.618243 c
+0.647203 8.620916 0.649884 8.625351 0.653622 8.631491 c
+0.661100 8.643773 0.672803 8.662872 0.688628 8.688334 c
+0.720281 8.739264 0.768394 8.815605 0.832126 8.913722 c
+0.959645 9.110041 1.149373 9.393042 1.394592 9.733773 c
+1.885998 10.416582 2.595344 11.324381 3.468584 12.229158 c
+5.249457 14.074348 7.561177 15.750000 10.000000 15.750000 c
+10.000000 17.250000 l
+6.915976 17.250000 4.227695 15.175652 2.389280 13.270842 c
+1.452876 12.300619 0.697756 11.333418 0.177108 10.609976 c
+-0.083701 10.247583 -0.286898 9.944647 -0.425797 9.730808 c
+-0.495274 9.623848 -0.548743 9.539055 -0.585370 9.480123 c
+-0.603685 9.450653 -0.617797 9.427637 -0.627599 9.411538 c
+-0.632500 9.403488 -0.636324 9.397165 -0.639059 9.392628 c
+-0.640427 9.390360 -0.641522 9.388536 -0.642343 9.387168 c
+-0.642754 9.386484 -0.643096 9.385912 -0.643369 9.385455 c
+-0.643506 9.385227 -0.643660 9.384970 -0.643728 9.384855 c
+-0.643864 9.384628 -0.643984 9.384428 0.000000 9.000000 c
+h
+10.000000 15.750000 m
+12.438823 15.750000 14.750543 14.074348 16.531416 12.229158 c
+17.404655 11.324381 18.114002 10.416582 18.605408 9.733773 c
+18.850628 9.393042 19.040356 9.110041 19.167873 8.913722 c
+19.231606 8.815605 19.279718 8.739264 19.311373 8.688334 c
+19.327196 8.662872 19.338900 8.643773 19.346378 8.631491 c
+19.350117 8.625351 19.352797 8.620916 19.354408 8.618243 c
+19.355213 8.616907 19.355751 8.616011 19.356020 8.615564 c
+19.356155 8.615339 19.356222 8.615228 19.356220 8.615229 c
+19.356220 8.615229 19.356169 8.615314 19.356169 8.615314 c
+19.356102 8.615429 19.356016 8.615572 20.000000 9.000000 c
+20.643984 9.384428 20.643864 9.384628 20.643728 9.384855 c
+20.643660 9.384970 20.643507 9.385227 20.643370 9.385455 c
+20.643097 9.385912 20.642754 9.386484 20.642344 9.387168 c
+20.641521 9.388536 20.640427 9.390360 20.639059 9.392628 c
+20.636324 9.397165 20.632500 9.403488 20.627598 9.411538 c
+20.617796 9.427637 20.603685 9.450653 20.585369 9.480123 c
+20.548744 9.539055 20.495274 9.623848 20.425797 9.730808 c
+20.286898 9.944647 20.083702 10.247583 19.822893 10.609976 c
+19.302244 11.333418 18.547125 12.300619 17.610720 13.270842 c
+15.772305 15.175652 13.084024 17.250000 10.000000 17.250000 c
+10.000000 15.750000 l
+h
+f
+n
+Q
+q
+1.000000 0.000000 -0.000000 1.000000 9.999836 8.500000 cm
+0.262745 0.278431 0.301961 scn
+3.750000 3.750000 m
+3.750000 2.921573 3.078427 2.250000 2.250000 2.250000 c
+2.250000 0.750000 l
+3.906854 0.750000 5.250000 2.093146 5.250000 3.750000 c
+3.750000 3.750000 l
+h
+2.250000 2.250000 m
+1.421573 2.250000 0.750000 2.921573 0.750000 3.750000 c
+-0.750000 3.750000 l
+-0.750000 2.093146 0.593146 0.750000 2.250000 0.750000 c
+2.250000 2.250000 l
+h
+0.750000 3.750000 m
+0.750000 4.578427 1.421573 5.250000 2.250000 5.250000 c
+2.250000 6.750000 l
+0.593146 6.750000 -0.750000 5.406854 -0.750000 3.750000 c
+0.750000 3.750000 l
+h
+2.250000 5.250000 m
+3.078427 5.250000 3.750000 4.578427 3.750000 3.750000 c
+5.250000 3.750000 l
+5.250000 5.406854 3.906854 6.750000 2.250000 6.750000 c
+2.250000 5.250000 l
+h
+f
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  5986
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 24.000000 24.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
+0000006076 00000 n
+0000006099 00000 n
+0000006272 00000 n
+0000006346 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+6405
+%%EOF

+ 2 - 0
compdfkit-tools/compdfkit-tools/Viewer/PDFMore/PDFDisplaySetting/CPDFDisplayTableViewCell.h

@@ -26,6 +26,8 @@ NS_ASSUME_NONNULL_BEGIN
 
 @property (nonatomic, copy) void(^switchBlock)(void);
 
+@property (nonatomic, assign) BOOL hiddenSplitView;
+
 @end
 
 NS_ASSUME_NONNULL_END

+ 17 - 1
compdfkit-tools/compdfkit-tools/Viewer/PDFMore/PDFDisplaySetting/CPDFDisplayTableViewCell.m

@@ -12,6 +12,12 @@
 
 #import "CPDFDisplayTableViewCell.h"
 
+@interface CPDFDisplayTableViewCell()
+
+@property (nonatomic, strong) UIView * splitView;
+
+@end
+
 @implementation CPDFDisplayTableViewCell
 
 - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
@@ -38,6 +44,10 @@
         _titleLabel.font = [UIFont systemFontOfSize:17.];
         [self.contentView addSubview:_titleLabel];
         
+        _splitView = [[UIView alloc] init];
+        _splitView.backgroundColor = [UIColor colorWithRed:0. green:0. blue:0. alpha:0.1];
+        [self.contentView addSubview:_splitView];
+        
     }
     return self;
 }
@@ -48,8 +58,9 @@
     _modeSwitch.frame = CGRectMake(self.contentView.frame.size.width - 50, (self.contentView.frame.size.height - 30)/2, 30, 40);
     
     _checkImageView.frame = CGRectMake(self.contentView.frame.size.width - 40, (self.contentView.frame.size.height - 40)/2, 30, 30);
-    _iconImageView.frame = CGRectMake(10, 12, 20, 20);
+    _iconImageView.frame = CGRectMake(20, 12, 20, 20);
     _titleLabel.frame = CGRectMake(CGRectGetMaxX(_iconImageView.frame) + 10, 12, self.contentView.frame.size.width - _modeSwitch.frame.size.width - 40 - _iconImageView.frame.size.width, 20);
+    _splitView.frame = CGRectMake(0, self.contentView.frame.size.height-1, self.contentView.frame.size.width, 1);
 }
 
 #pragma mark - Action
@@ -60,4 +71,9 @@
     }
 }
 
+- (void)setHiddenSplitView:(BOOL)hiddenSplitView {
+    _hiddenSplitView = hiddenSplitView;
+    self.splitView.hidden = hiddenSplitView;
+}
+
 @end

+ 1 - 0
compdfkit-tools/compdfkit-tools/Viewer/PDFMore/PDFDisplaySetting/CPDFDisplayViewController.m

@@ -187,6 +187,7 @@ typedef NS_ENUM(NSUInteger, CDisplayPDFType) {
     self.titleLabel.adjustsFontSizeToFitWidth = YES;
     self.titleLabel.textAlignment = NSTextAlignmentCenter;
     [self.view addSubview:self.titleLabel];
+    
 }
 
 - (void)buttonItemClicked_back:(id)sender {

+ 1 - 0
compdfkit-tools/compdfkit-tools/compdfkit_tools.h

@@ -67,4 +67,5 @@
 //Edit
 #import <compdfkit_tools/CPDFEditToolBar.h>
 #import <compdfkit_tools/CPDFEditViewController.h>
+#import <compdfkit_tools/CPDFToolsViewController.h>