This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // PDFImage.swift. Copyright © 2016 Nigel Timothy Barber (@mindbrix). All rights reserved. | |
| // | |
| import UIKit | |
| extension UIImage { | |
| static func PDFImageWith(url: NSURL, pageNumber: Int, width: CGFloat) -> UIImage? { | |
| return PDFImageWith(url, pageNumber: pageNumber, constraints: CGSizeMake(width, 0)) | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIImage+Decompression.swift | |
| // Contis Protocol | |
| // | |
| // Created by Nigel Barber on 01/03/2017. | |
| // Copyright © 2017 @mindbrix. All rights reserved. | |
| // | |
| import CoreGraphics | |
| import ImageIO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIImage+PDF.swift. Copyright © 2016 Nigel Timothy Barber (@mindbrix). All rights reserved. | |
| // | |
| import UIKit | |
| extension UIImage { | |
| static func PDFImageWith(_ url: URL, pageNumber: Int, width: CGFloat) -> UIImage? { | |
| return PDFImageWith(url, pageNumber: pageNumber, constraints: CGSize(width: width, height: 0)) | |
| } | |
OlderNewer