KurtCode / PDFKitten

A framework for extracting data from PDFs in iOS
MIT License
391 stars 113 forks source link

get occurences #42

Closed shoaibhussan closed 11 years ago

shoaibhussan commented 12 years ago

hi every body i m working with pdfkitten library,,i want to get total occurencies for a string in a pdf file,,,,any body can help me plz,,,,,thx in advance

KurtCode commented 12 years ago

You will have to repeat the process for each page.

shoaibhussan commented 12 years ago

and if i want to get a list off occurernces of a string from multiple files........?

KurtCode commented 12 years ago

Again, Kitten operates on a single PDF page at a time. You must implement the supporting functionality providing it with pages, be it from a single document or several.

shoaibhussan commented 12 years ago

Thanx,now suppose i m scanning this document from my local machine @"http:localmachine/my.pdf" then in class scanner.m i made an interger and updating its value in following method for string detection:

but in case of multiple files suppose @"http:localmachine,"[myarray objectatindex:i]; integer return 0; what type of functionality should i add for multiple files

shoaibhussan commented 12 years ago

can u help me with a small sample code

KurtCode commented 12 years ago

The Xcode project included in this project contains all the necessary code. All you need to add is some simple iteration (i.e. a for-loop) to process each page or document.