CSPDFReader 1.0.1

CSPDFReader 1.0.1

Maintained by WeiRuJian.



  • By
  • WeiRuJian

CSPDFReader

CI Status Version License Platform

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.