views:

2096

answers:

1

up to this point, i had not found a solution that would work well to extract text from a pdf in objective c for use on the iphone. i found some standard c code and modified it to work, and thought i would provide it here, as up to this point i have used stackoverflow quite a bit but never gave back. you can get it here: http://dl.dropbox.com/u/3307079/pdfIphone.zip

it takes as input the path of the pdf file and returns a nsstring of the text in the pdf. i did not write the majority of this, but i did modify it so it would work with the iphone and objective c. you do need to include the Zlib library in your project (libz.dylib on the iphone) if someone takes this and makes it more awesome, that is good times.