How to select text in PDF file in objective c? - objective-c

I am right now working with one pdf based application in ipad. Now i am able to display the pdf file in the ipad,but now i want to show some annotation based operations on the same pdf file. and for the same purpose,i need to select the text.Is there any function available that may help to select the text to perform the operations?
Thanks in advance.
EDIT :
I surfed net and found some code that was helpful for UITouch in the following link
but am not getting way to implement it for my purpose. Can Somebody show me a path?
Kindly show me a path.

This is the best resource I have found on SO so far: Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?. Maybe it will help. There is nothing on selecting text specifically, but maybe the "Getting raw test" and "Searching" sections will help you.

Related

Which NSView does Finder use to show files?

I want to show all the files in a folder as shown below(image):
Also, I would be really thank full if you could give me link of some tutorials to study the very view and how to use it.
Many Thanks in advance.
This is an NSBrowser. Read Apple's Browser Programming Topics for even more info. I think their browser may be customized to get the full behavior seen in the Finder.

Text reading experience in iOS app

I want to implement a great text reading experience in my app, similar to "Pocket", that would look a lot like this:
Basically, I'd like to have control over the text font size and font family while loading local HTML files in a UIWebView.
Could anyone point me to the right direction? Are there any frameworks or libraries out there that provide the base for such experience?
Thanks in advance.
A simple answer is: don't. Instead load it into a UITextView. You can easily change the font size with it, as on HTML you would have to modify the file instead of calling 1 line of code.

Alternative to PDF on iPad

I have to create a PDF reader for Ipad, so i read about CGPDFdocument and UIWebView.
In my opinion CGPDFDocument is too complex(i need to mange link) and using a UIWebView i can't customize behavior.
Is there an alternative way to build that? Perhaps a way to convert PDF to another format like ebook ?
Thank you !
What's hard about CGPDFDocument? Apple's example in the Quartz2D programming guide is only 30 lines long.

How to convert html data to PDF in objective c

I want to convert html to pdf dynamically in objective c.
what is the best way to convert it, so that it maintains its look same as html.
Thanks in advance.
Prasad.
UIGraphicsBeginPDFContextToFile will help you to create a PDF file which shows your web content. Read through the documentation and create your own solution or just follow the tutorials I found:
Convert Html or UIWebView to pdf in iPhone or iPad
Making a PDF from a UIWebView
I have used this Haru open source library, it is quite simple and useful for creating pdfs http://libharu.org/wiki/Main_Page
Objective-C is a programming language, it doesn’t know anything about HTML or PDF per se. How to do this depends on the framework you’re using. I’m assuming here you’re using Cocoa on OS X.
There you can load your HTML into a WebView provided by WebKit and then use the NSView method dataWithPDFInsideRect: to render it as PDF. I haven’t tested this, but maybe you’ll have to add the web view to a window before you can query the PDF data.

Search and Highlight text in PDF for IPad

I am working on the PDF App for iPad and facing an issue: how to search a text in PDF and also how to highlight that text?
Yours is the same big problem I'm having. My understanding is that, currently on iOS 4.0, the main public API is CGPDF . It allows us to parse PDF, and with it we can search strings in it. See also this Quartz 2D document. It also allows us to render it on the screen using CGContextDrawPage. However, it's not yet possible to get the position of a text in the rendered image. (On OS X it's possible using PDFKit.)
So, I'm afraid that you need to implement the PDF spec yourself to get that info. I think GoodReader etc. is working very very hard to implement these.
I had the same trouble recently and then I found FastPDFKit. Have tested the package and it's working great.
http://mobfarm.eu/fastpdfkit