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.
Related
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
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.
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.
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.
Is it possible to simply take a picture and save it somewhere using a QTCaptureView and Apple's built-in iSight? I've seen lots of tutorials on recording video but none on simply taking a picture. Any help or guidance is appreciated!
Collin
You can do this with QTKit - the QTKit Application Programming Guide has a section for this titled, "Creating a Single-Frame Grabbing Application".
The better approach, however, is ImageKit's PictureTaker. It gives you the standard UI found in ImageBooth and other apps and is dead-simple to use in code.
I found the source of ImageSnap useful for understanding how to use QTKit to do this sort of thing. It is a simple command line application for taking pictures with the iSight camera.