/XP_PDFReader

Swift版PDF阅读器

Primary LanguageJavaMIT LicenseMIT

XP_PDFReader

CI Status Version License Platform

演示

演示.gif

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

XP_PDFReader is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'XP_PDFReader'

use

/// 加载网络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))

Author

jamalping, 420436097@qq.com

blog

https://www.jianshu.com/p/b05da7357261

License

XP_PDFReader is available under the MIT license. See the LICENSE file for more info.