Editable Webview/TextView ? Or Any other Controller? - iphone

I am working on a project which can edit any document file whether it is doc, rtf, txt, pdf file.
After editing user can save or you can say update that file.
Please advise .. how can anyone edit pdf or doc and re save it ?
Thanks

There is no support for editing pdf or doc files in iOS4. If you want this you'll have to write it yourself.
A UIWebView can natively interpret a lot of document formats but there is no editing for this. If you just want to open these formats I would recommend a UIWebView. If you really need to save to a certain format, you'll have to look around for a framework that can save text to the formats you need. Or you're going to have to do it yourself.

Related

How to read pdf table content data?

I have a requirement to read a pdf file having tabular format data only like in excel file. I need to extract the cell value of given pdf file.
Is it be anyhow possible using itext API. If you have something to share then please share it or any other solutions?
The PDF format is just a canvas where text and graphics are placed without any structure information. As such there aren't any iText-objects in a PDF file. In each page there will probably be a number of Strings, but you can't reconstruct a phrase or a paragraph using these strings. There are probably a number of lines drawn, but you can't retrieve a Table-object based on these lines.
In short: parsing the content of a PDF-file is NOT POSSIBLE with iText.
You can try this! This lets you read PDF pages.
I recently ran into this problem. I wasn't able to make it work with itext.
An alternate solution I found was to open a PDF document in Adobe and export it to xml. At least with my PDF's it preserved the table information and then I was able to programmatically work with the XML to generate tabular files like excel etc.
The other issue I ran into was that Adobe only lets you export one file at a time and I had lots of files. Luckily Adobe also has a merge function. I ended up merging all the files together and then exporting them as one big XML file and working with that file to generate what I needed.

Attachments in RavenDB

What is the best way to handle attachments in RavenDB?
A webpage has an upload pdf button in addition to other fields. All those fields are saved into one document in ravendb.
Like wise, I also want the pdf the user uploads using the upload button to be saved somewhere...
How does RavenDB do something like this.. handling such attachment informtion...
Do I have to just store the path to the pdf file? or is there a way to store the entore pdf file itself?
Are there any examples I can see that have accomplished this ..
Thanks for the information.
Already answered here.
https://groups.google.com/group/ravendb/browse_thread/thread/f4e8440cfd6ec6df/ac1b2334ebc04c6f?lnk=gst&q=pdf#ac1b2334ebc04c6f

Pdf Reader+iphone

i want to make PDF reader app in phone.
where i have to implement search functionality.
in which i have to take the text of one page of .pdf file and have to do search functionality.
Is anyone had done it.
Please give me the sample code.
Thanks in advance
Editing the question.....
I had done how to search the key word,but i is working on .pdf file of one single page only.But not able to do how i have to search the word in multiple page.
Example:-
If i am having the .pdf file of multiple page.And now i want to implement the search functionality.Then how can i do it.
Please help me
Yes someone did it before. I used this kit also and it is great to search pages and highlight the result. It's PDFKitten by KurtCode (on Github).

editing pdf contents in uiwebview iphone

hi im working on pdf manipulation.
my requirements are to edit the existing pdf document.
looks like there is no actual way to do it. i found out using javascript i can edit the html contents.
so now that my pdf is in uiwebview is there any way to convert pdf document to html content???
i have to do it programatically.
preferred language is objective c but its k if any suggestions in C/C++
thanks in advance
You will have to drop down to C if you want to do this. Basically you need to get hold of a CGPDFDocumentRef reference, and through that iterate each CGPDFPageRef. From the page you can get access to the CGPDFContentStreamRef.
From the content stream you can parse out the primitive data that is is PDF document. From there only a good understanding of the PDF document format can help you.
I would advice you to find a commercial tool, hire an experience contractor, or change your plan. What you have your sights on is allot of hard work.

Is there a way to embed an Excel chart inside an iOS app?

Is it possible for it to retain its display formatting, and links to Internet sites?
UIWebView can display Excell documents. Just open them like you would any other HTML file. Not sure about the display formatting or links though.
http://developer.apple.com/library/ios/#qa/qa1630/_index.html
My approach would be a little bit different. If you have a way to get to the displayed data (e.g. parse the excel file, or if possible use a csv or plist). Then you could use CorePlot to display the data. I really like this SDK, because you can nearly customize everything. ;-)
Sandro