This .h and .m class file can create pdf in ios(xcode). just import class files, and make and object of it, and than call one method, it will create pdf file from given string.