To run the example project, clone the repo, and run pod install
from the Example directory first.
XP_PDFReader is available through CocoaPods. To install it, simply add the following line to your 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, 420436097@qq.com
https://www.jianshu.com/p/b05da7357261
XP_PDFReader is available under the MIT license. See the LICENSE file for more info.