OCPDFGen

BSD License
Objective-C
iOS

1 image

Author

Description

This library allows you to generate PDF files from HTML, NSAttributedStrings, and NSStrings. It uses DTCoreText from Cocoanetics to generate the NSAttributedString from HTML, then renders that string into a paged PDF context on the device. It saves the resulting file in the Documents folder on the device, and hands back the URL.

At the moment, only text is supported in HTML. No images, tables, hr's, etc. Basic CSS is used to format the text in style="" attributes.

This component was built by Mobile World Software, and is granted under the BSD license.

Tags