https://github.com/hackinggate/hgpdfkit
Apple PDFKit extension in Swift
https://github.com/hackinggate/hgpdfkit
Last synced: about 1 year ago
JSON representation
Apple PDFKit extension in Swift
- Host: GitHub
- URL: https://github.com/hackinggate/hgpdfkit
- Owner: HackingGate
- License: mit
- Created: 2018-10-28T04:33:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-16T15:29:10.000Z (over 5 years ago)
- Last Synced: 2025-04-13T11:04:28.564Z (about 1 year ago)
- Language: Swift
- Homepage: https://cocoapods.org/pods/HGPDFKit
- Size: 2.59 MB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HGPDFKit [](https://raw.githubusercontent.com/HackingGate/HGPDFKit/master/LICENSE)
Apple PDFKit extension in Swift
## Usage
#### UIScrollView
You can directely access pdfView's scrollView by
```
pdfView.scrollView?
```
#### Auto zoom
Auto zoom in or out
```
pdfView.autoZoomInOrOut(location: sender.location(in: "location you want to zoom"), animated: true)
```
Is it zoomed in?
```
pdfView.isZoomedIn
```
#### RTL (Right to Left)
Change to RTL
```
pdfView.transformViewForRTL(true, pdfThumbnailView)
```
Is it chnaged to RTL?
```
pdfView.isViewTransformedForRTL
```
## Requirement
iOS 11.3
Swift 4
## Example
#### CocoaPods
Run `pod try HGPDFKit`.
#### SwiftPM
Clone the project and open Example folder.
## Acknowledgement
#### BookReader
Website: [https://github.com/kishikawakatsumi/BookReader](https://github.com/kishikawakatsumi/BookReader)
License: [MIT](https://github.com/kishikawakatsumi/BookReader/blob/master/LICENSE)