Open Source Library For Easily Making Great Looking Text PDFs On The iOS Platform

I’ve mentioned some resources for creating PDF files on the iOS platform using Quartz, UIKit, and the libHaru library.

Today I came across the OCPDFGen library that makes it much easier to create text PDF files.

Using CSS styling to change the fonts, and font size you can easily make great looking text.

The readme states:

This very basic library allows developers to create well-formatted text PDF files on iOS devices from CSS-formatted HTML. The HTML is parsed using the excellent DTCoreText framework from Cocoanetics, which then turns the HTML string into an NSAttributedString. A CoreText formatter is used to format the text onto pages, and full pagination support is enabled.

You can find the library by Oliver Clark Rickard on Github here.

While there’s no support for images this is a great library for easily making text PDFs.

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: Open Source Library For Easily Making Great Looking Text PDFs On The iOS Platform

©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.


Leave a Reply

Your email address will not be published. Required fields are marked *