Skip to content

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

Description

@VrasidasP

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions