CSPDFReader
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
CSPDFReader is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CSPDFReader'
Using
let url = URL(fileURLWithPath: Bundle.main.path(forResource: "图解HTTP", ofType: "pdf")!)
guard let reader = CSPDFReader(url: url, constant: 300) else { return }
print("totalPage: \(reader.pageCount)")
print("fileName: \(reader.fileName)")
guard let images = reader.allPageImages() else { print("No find image"); return }
Author
Choshim丶Wy, [email protected]
License
CSPDFReader is available under the MIT license. See the LICENSE file for more info.