We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSData
Add support for binary and image ref newly.
public enum PDFPage { case WhitePage(CGSize) case View(UIView) case Image(UIImage) case ImagePath(String) case Binary(NSData) // Add case ImageRef(CGImageRef) // Add }
let imageData = NSData(contentsOfFile: imagePath)! let imageData2 = NSData(contentsOfFile: imagePath2)! let pdfData = try! PDFGenerator.generate([imageData1, imageData2])
let pdfData = try! PDGenerator.generate([ PDFPage(.Binary(imageData)), PDFPage(.ImageRef(imageref)) ])
The text was updated successfully, but these errors were encountered:
Add new PDFPage type #11
8001050
Add Unit test #11
1c6ffa5
update #11
4770c93
Successfully merging a pull request may close this issue.
Add support for binary and image ref newly.
Todo
(Consider to manage memory when convert binary or image ref to image.)
Sample(expectation)
The text was updated successfully, but these errors were encountered: