XP_PDFReader
示例
Example
要运行示例项目,请克隆仓库,然后从 Example 目录首次运行 pod install
要求
安装
XP_PDFReader 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile
pod 'XP_PDFReader'
使用
/// 加载网络PDF
let url = "http://www.gov.cn/zhengce/pdfFile/2018_PDF.pdf"
PDFReaderManage.shareInstance.openURL(.netWork(url: url), openType: .present(self))
/// 加载本地PDF文件
guard let localAdress = Bundle.main.path(forResource: "s3PreviewPDFdoid311538", ofType: "pdf") else {
return
}
PDFReaderManage.shareInstance.openURL(.local(url: localAdress), openType: .present(self))
作者
jamalping, [email protected]
博客
https://www.jianshu.com/p/b05da7357261
授权
XP_PDFReader 在 MIT 授权下可用。更多信息请参阅 LICENSE 文件。