Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments