打开文件

## 打开服务端文件 //导入头文件 #import <Wellsign_ReaderSDK/Wellsign_ReaderSDK.h> - 接口展示: ``` /// 初始化pdfv-view /// @param frame 位置 /// @param config 配置参数 ( 具体配置参考示例代码 ) /// @param layoutDirection 翻页模式 ( 横向/竖屏, 默认横屏 ) /// @param block 回调 + (void)initWithFrame:(CGRect)frame config:(WSSDKOConfig *_Nonnull)config layoutDirection:(WSLayoutDirection)layoutDirection block:(void(^_Nonnull)(BOOL success, WS_PDFView *_Nullable view, NSString *_Nonnull msg))block; ``` - 调用示例: ``` WSSDKOConfig *config = [[WSSDKOConfig alloc] init]; config.signInfos = @"rUXY8rIDW4Q";//文件id config.signerId = @"007";//用户id config.signerName = @"好签";//用户名 config.signerDesc = @"这是描述"; config.deviceType = 3; //类型写死 3: iOS [WS_PDFView initWithFrame:CGRectMake(0, WS_NAVIGATION_BAR_HEIGHT, KScreenWidth, KScreenHeight-WS_NAVIGATION_BAR_HEIGHT) config:config layoutDirection:wskHorizontal block:^(BOOL success, WS_PDFView * _Nullable view, NSString * _Nonnull msg) { if (success) { //成功, 初始化UI view.pdfDelegate = self; self.pdfView = view; [self.view addSubview:view]; //初始化导航栏-自行实现 [self initNavView]; //初始化工具栏-自行实现 [self initToolBar]; [view mas_makeConstraints:^(MASConstraintMaker *make) { make.top.mas_equalTo(WS_NAVIGATION_BAR_HEIGHT); make.left.right.mas_equalTo(0); if(WS_IS_IPHONE_X_STYLE){ make.bottom.mas_equalTo(-83); }else{ make.bottom.mas_equalTo(-49); } }]; } else { //失败 [self.navigationController popViewControllerAnimated:YES]; } }]; ``` ## 本地文件 还没写