Unable to read text from Pdf in ios

438 views Asked by At

I am trying to extract text for pdf document in my iOS application, I am using CGPDFScanner.. I used the reference from these links:

The methods specified in the above two links work for some simple (Programming in Objective-c) type of pdf.. but when I try to extract text from pdf such as those in "Head First" series I get garbage value. Please suggest me some solution which will work for all types of pdf

2

There are 2 answers

1
Swaroop On

If you are using PDFKitten, it can be CMap parsing issue in that. I have resolved this issue and found that searching is going well in almost every pdf.

2
Rahul Mathur On

Try using http://fastpdfkit.com/ , this is one of the best pdf reader library that i have used.