Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any framework to highlight text on pdf file after rendering on the iphone

I am trying to work on searching a word on the pdf which is rendered through the drawLayer. Can any one suggest how I should find a word on a pdf and the position (co-ordinates) of the word on the page? Is there any free framework to import or any libraries available? After spending more time with google I found some samples to search a word on pdf; those are fastsamplepdf from github, random ideas

MY WORK
I seen fastsample pdf code; I understood only the parsing of the pdf to text using

+(MFDocumentManager *)documentManagerWithFilePath:
    (NSString *)filePath; 

and

-(NSString *)wholeTextForPage:
    (NSUInteger)pageNr withProfile:(MFProfile *)p;

But I can't find how they are highlighted. Please can any one help me out with this. Please post some suggestions. Thank you.

like image 841
ajay Avatar asked Mar 17 '11 06:03

ajay


People also ask

How can I highlight text in PDF?

Open your PDF in Acrobat. Click and drag the cursor to select the area of text you want to highlight. A small toolbox will appear above your text. Select the highlighter tool icon and it will automatically highlight your selected text.

How do I highlight a PDF in Preview?

Once your file is open in Preview, you can easily highlight text by selecting the highlight tool from the toolbar. You can choose to highlight in different colors to help guide your reading. You can also use notes to annotate PDFs in Preview.


1 Answers

Refer

PDF search on the iPhone

PDF Manipulation on iPhone SDK

Which are the pdf operators needed to do a search feature in a PDF in iphone sdk?

like image 123
Mihir Mehta Avatar answered Sep 28 '22 05:09

Mihir Mehta