Hyperlinks for PDF in the iPhone - objective-c

How to add/access hyperlinks (both internal and web page) in the PDF in iphone?
Sri

Not sure if you are asking this from a user or implementation perspective, I assume implementation as this is a programming Q/A site:
The PDF will more than likely be rasterized to an image for the phone, it will be up to the reader to extract the text/links and overlay these over the image to make them clickable.
I have seen this type of thing in flash readers/pagers where these link/hotspots are configured manually, obviously not an option for a generic PDF reader

This is the best that I have found on SO: Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?. Many links and helpful tips.

Related

How to view the code behind a PDF document in IOS

I have a PDF page that I've converted into a stream:
CGPDFContentStreamRef contentStream = CGPDFContentStreamCreateWithPage(pdfPage);
How can I view that stream as an NSString? I'd like to see the code that represents the PDF.
Thanks!
It's not as easy as that. A stream can be any binary data, there might be multiple chained compression formats used. See http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008.pdf (Page 23ff) for potential formats.
Your best option is CGPDFScanner other than re-implementing a PDF parser/lexer from scratch (We did that in the commercially available PSPDFKit SDK for iOS and Android - it's complicated.)

Is there a way to display PDF on Apple tvOS?

I just started exploring Apple's tvOS and am looking if there is a way to display PDFs in a carousel or of that sorts. However, I cannot find a way to achieve that without converting PDF to JPEG images. Can someone guide me if there is a Document object that can read and render PDF on tvOS?
I think CGPDFPage and its related API:s are available, https://developer.apple.com/library/prerelease/tvos/documentation/GraphicsImaging/Reference/CGPDFPage/index.html

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.

Adobe AIR can't show Flash embedded in HTML?

of all three choices (AIR+AJAX, +Flash, and +FLEX) I went on the AJAX route. But it seems that it can't show Flash embedded in HTML (using the traditional OBJECT tag).
Is it by design? or my fault?
i think it's your fault. there are a number of air "web browsers" and they all can display flash just fine.
google for some. i found one here and it gives the source code as well
I've found the culprit: my window is transparent.
According to adobe, SWF and PDF won't be displayed if transparency is used.
I don't know much about Ajax but i do know the preferred method to embed flash into html is to use swfobject. have you tried that yet?