How to search text in pdf document with quartz
问题 I'm using quartz to display pdf. I need to get the indexes of pages where my searching text exists. Anyone can help me? Thanks. Solution: There is a sample of code that extracts a text from the page and check it for the sequences. #import <Foundation/Foundation.h> @interface PDFSearcher : NSObject { CGPDFOperatorTableRef table; NSMutableString *currentData; } @property (nonatomic, retain) NSMutableString * currentData; -(id)init; -(BOOL)page:(CGPDFPageRef)inPage containsString:(NSString *