SwiftPDFGenerator alternatives and similar libraries
Based on the "PDF" category.
Alternatively, view SwiftPDFGenerator alternatives based on common mentions on social networks and blogs.
8.1 0.0 SwiftPDFGenerator VS FastPdfKitA Static Library to be embedded on iOS applications to display pdf documents derived from Fast PDF
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SwiftPDFGenerator or a related project?
The Library generates a PDF directly from interface builder with Auto-layouted views! Swift Version of UIView_2_PDF.
Download and drop
SwiftPDFGenerator.swift in your project.
1. Make a xib file.
Your xib file should only consist of UILabels and/or UIImageViews and/or other UIView subviews. Use views that are 1 pixel high or wide to create lines. Set the tag of a UIView to 1 to have it draw filled or zero to draw as just a 1 pixel bordered box.
2. Load your xib like this
let pageOneView = NSBundle.mainBundle().loadNibNamed("PageOneView", owner: self, options: nil).last as! PageOneView let pageTwoView = NSBundle.mainBundle().loadNibNamed("PageTwoView", owner: self, options: nil).last as! PageTwoView
3. Then generate your PDF like this
let filePath = SwiftPDFGenerator.generatePDFWithPages(pages)
See demo project for details.
swift-pdf is released under the MIT license. See 'LICENCE.md' for details.
*Note that all licence references and agreements mentioned in the SwiftPDFGenerator README section above are relevant to that project's source code only.