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

How to stop searching a page after the first result? #87

Open
VrasidasP opened this issue Nov 18, 2015 · 0 comments
Open

How to stop searching a page after the first result? #87

VrasidasP opened this issue Nov 18, 2015 · 0 comments

Comments

@VrasidasP
Copy link

Hello!
I'm scanning a pdf file page-by-page, and I'm interested in just showing a list with the pages where a result was found (not the number of results per page).

I thought it would be more efficient if the search stopped after the first result was found, but I can't get it to work.

I tried exiting early from the while loop in StringDetector's appendString: but it seems that doesn't affect the results.

So, is there a way to manually stop the CGPDFScannerScan when the self.selections gets its first result?

Thanks!

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

1 participant