editing pdf contents in uiwebview iphone - 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.

Related

How to display a PDF from NSMutableData?

I need to display a PDF I have stored into an NSMutableData array.
My question is, how do I display a PDF to a view when I have the NSMutableData array. I'd rather not save the file to disk if at all possible. I'm not dealing with very large PDF's. They would barely be 2 pages at most.
Ive seen a lot of info about displaying in a webview. Is a requirement? or just something people do?
Thanks
Unless you have a particular requirement to use NSMutableData array then have a look at VFR reader it's a powerful PDF reader and nice and easy to implement.
You can either access a locally stored PDF or use one from a web site.
VFR Reader

How to use NITF in iPhone

I need to create one sample application for NITF-News Industry Text Format in iphone. I don't know how to begin. What Language(Css,Javascript like that..) should i use to read the content from .xml(NITF) files and design the article pages in iphone.I red from this Link. NITF uses the eXtensible Markup Language(xml) to define the content and structure of news articles.
Please anyone give me some guidance to start.
Thanks in Advance
Use NSXmlParser to parse the data.. Then display the content accordingly..

What is the most elegant way to view a multipage PDF in iOS application?

I am stuck in a predicament whereby I hope someone can help me.
I am consuming a web service that returns a multi page PDF document as a Base64 payload. I want to be able to view the PDF on a page by page basis. For example I get the following string back in a long Base 64 encoded form within image tags :
<image>JVBERi0xLjMNCiXi48/TDQoxIDAgb2JqDQo8PA0KL01vZER........</image>
I am not wanting to use a UIWebView to view the fax but a simple very basic PDF viewer with pagination. I know there are some libraries like Fast PDF Kit but that would not work because they show the logo and the license is a little pricey.
I am a PDF newbie so if someone can show by a small example I would truly appreciate that.
I'm not sure why you don't want to use UIWebView since it probably does everything you need. PDF parsing guide from Apple will show you how to implement this by hand:
http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf_scan/dq_pdf_scan.html

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

Browse pdf with IText (or Itextsharp)

I'm receiving a pdf that contains some data I would like to parse.
For example, there's an array with some integer data that I would like to parse for an automatic treatment.
I've looked at itext but the sample I've found are for writing pdf only.
Can someone give me an example of how to read through a pdf ?
Thanks in advance for any help.
Best regards
PdfBox is much better for reading text from a PDF file.
Finally,
I'm converting PDF to Word and I'm using Word interop :)