I'm new to the forum, and I tought that maybe someone had a solution to my problem.
Basically, I'm trying to display a .pdf file using a UIWebView. I've accomplished that, but now I'm trying to create a "search" bar, in order to search text in that particular file.
After many googling, search for libraries, etc, I've come to realized that there isn't a simple way to do that. Someone told me that maybe I should convert that pdf file to an HTML document, so that I can browse it more easily.
Again, I went to google, and search for libraries in C, C++ and objective C. But didn't fin any good or free one.
So, my question is: Is there a way to convert a pdf file to an html? Does anyone needed to do this before me?
Hi!
I've come to realise that is easily to "convert" the pdf document to html. Now, looking up for html search I encountered this blog that was very usefull. I was able to do the search and highlight the text: Search and highlight text in UIWebView – iCab Blog
Hi!
I've come to realise that is easily to "convert" the pdf document to html. Now, looking up for html search I encountered this blog that was very usefull. I was able to do the search and highlight the text: Search and highlight text in UIWebView – iCab Blog
Hope it helps
How did you manage to convert PDF to HTML. Could you share any link or sample code for the same.
Hi,
I am a newbie in iphone programming and now i need help in highlighting a searched text in pdf.
I have used a webview and loaded the pdf(same as mentioned in the 1st post). Also i referred the link mentioned above. But i am not able to convert pdf to html...Please can anyone give a hint or some reference.....
I will be glad if anyone post the code for achieving this...
plz forward me the solution to convert .pdf to .html.... thanks for doing so.........
Quote:
Originally Posted by franciscog
Hi!
I'm new to the forum, and I tought that maybe someone had a solution to my problem.
Basically, I'm trying to display a .pdf file using a UIWebView. I've accomplished that, but now I'm trying to create a "search" bar, in order to search text in that particular file.
After many googling, search for libraries, etc, I've come to realized that there isn't a simple way to do that. Someone told me that maybe I should convert that pdf file to an HTML document, so that I can browse it more easily.
Again, I went to google, and search for libraries in C, C++ and objective C. But didn't fin any good or free one.
So, my question is: Is there a way to convert a pdf file to an html? Does anyone needed to do this before me?
1. Convert PDF file to text file using Acrobat Reader or any program similiar. Just save it as a text file, no need for pro or extended versions of reader.
2. Open TextEdit.app, open up the text file you've created, copy/paste whole thing to a new document window.
- Open Preferences in TextEdit
- Go to the "Open/Save" Tab
- Change Document Type to HTML Strict or XHTML strict depending on your needs. In Styling, select No CSS.
- Go back and save the new document now as a html file.
There is a step by step instruction on how to convert PDF to HTML.
Hope that helps !
Hi!
I've come to realise that is easily to "convert" the pdf document to html. Now, looking up for html search I encountered this blog that was very usefull. I was able to do the search and highlight the text: Search and highlight text in UIWebView – iCab Blog
Hope it helps
Hi Franciscog,
I felt very happy, bcoz you mentioned "its very easy to convert pdf doc to html".Actually i succeeded in HTML search and highlighting. Please help me out how to convert pdf doc to html(source code is appreciated). Share some code or ideas that would help me to sort out this problem.
I know there are so many applications are there to do PDF to HTML conversion,But i want to do it in my application.
Thanks in advance.
Waiting for ur reply
Naveen
Last edited by Naveen Thunga; 05-11-2011 at 02:57 AM.
in my project(iphone and ipad) i show a person's medical reports in the form of a pdf. i have saved the reports in the documents directory and reading it form there.
now i want the user to be able to add or edit the comments for the pdf and the user should also be able to highlight certain sections in the pdf. i should be able to save it in the documents directory.
im not sure how to proceed with this. is it possible to do it?
do i have to use core graphics for al this. i havent used core graphics previously.
if u have done it can u share me ur code so tat i wil get an idea abt it..