Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when scanning a keyword of "" #53

Open
listingboat opened this issue Dec 28, 2012 · 4 comments
Open

Crash when scanning a keyword of "" #53

listingboat opened this issue Dec 28, 2012 · 4 comments

Comments

@listingboat
Copy link

You can replicate this in the sample app by tapping in the search box in the Simulator and hitting return. This searches for an empty keyword string.

I do this to retrieve all of the strings back from a PDF page. This used to work fine

The crash is in the appendString: method of StringDetector:

unichar expectedCharacter = [keyword characterAtIndex:keywordPosition];

The error is:

-[NSCFString characterAtIndex:]: Range or index out of bounds'

Thank you!

@KurtCode
Copy link
Owner

I just did some refactoring and can't reproduce your scenario.

@listingboat
Copy link
Author

Strange. I checked out the latest just this morning. Let me make sure.

Thank you for the quick response.

Chris

On Dec 28, 2012, at 2:27 PM, Marcus Hedenström [email protected] wrote:

I just did some refactoring and can't reproduce your scenario.


Reply to this email directly or view it on GitHub.

@niza3001
Copy link

niza3001 commented Sep 30, 2016

Hi @listingboat , did you ever find a way to retrieve all strings with pdfkitten?
searching for "" definitely does not work anymore...

@iOSBrett
Copy link

iOSBrett commented Jan 3, 2017

Anyone work out how to retrieve all strings with PDFKitten?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants