I want to create a PDF reader like iBooks. So that you can see the thumbnails for the pages, press on it and it opens the page etcetera. Also the bookshelf for showing the loaded PDF's
Does anyone know how I can create something like that? Is there a library or does somebody knows a good tutorial?
Thanks in advance!
What I need is something like this:
For the page curl, see this discussion. For everything else, you should break the problem down into more focused questions since it's hard to tell how much detail to give (ie, we don't know how much you already know).
Update
For the drawing part, start with the Cocoa Drawing Guide and the Views Programming Guide. I believe you can get basic PDF thumbnails using the UIImage class.
This opensource project is the exact copy of the iBook pdf reader:
http://www.vfr.org/
Related
Can anybody tell me , where can I get PNG button?
I think the best method is to design it yourself. Design it with Adobe Photoshop and then parse it to html or XML. There is a very good tool in Photoshop to do that. You can use this video as a guide
https://www.youtube.com/watch?v=_BM59afMRDU
I was looking out for the ways to create a UI bubble that looks like in Siri's UI.
I have previously created a iOS chat like UI in which I used the image and then played with its
stretchableImageWithLeftCapWidth:topCapHeight:
But, my take on this is, they are drawing the bubble using Quartz. But, as we all know it is a significant usage of the processor every time we do it.
Any suggestions?
Image Here
Try using this same tutorial but add those graphical look. You can easily make that in photoshop. If you are a good programmer than ask a friend who is UI designer (I hate photoshop can't even get line straight....lol, So I always ask my friends who knows photoshop to make something like this)
This tutorial is Great!!!
http://mobiforge.com/developing/story/sms-bubble-ui-iphone-apps
Good luck!
After many hours of googling I thought I would see if anyone knew the answer.
I have a large PDF file (30mb) which I was using the UIWebView to display but it is painfully slow when trying to scroll through pages and when you rotate the iPhone/iPad it doesn't draw properly on the screen till you have scrolled through a few pages.
So I have been looking into using the CGPDFDocumentRef to display the PDF. Before I go any further is there an easier way to do this, or any examples/open source solutions to do this before I spend a long time trying to replicate the UIWebView or something similar to display a large PDF.
I assume someone else has had this problem?
Many thanks for any help
I've been building one of these for a while now. I'll tell you, both approaches have difficulties. The CGPDFDocumentRef path is the one that I've taken, and it's worked out pretty well.
A good place to start is here, with Apple's example, ZoomingPDFViewer. You'll get a good idea of how that CGPDF* stuff works. If you're looking to put something together in a hurry, you might want to start with this guy's example. In fact, the author's website has a huge list of resources to use when you run into problems.
I want to implement a functionality similar to found in Pages app..i.e. text floating around images, image zooming etc.. I have been struggling with this part of my application but no success yet. Would be grateful if someone provides me with some pointers in this regard , like 'Which UIControl should I use?','Help in thinking logic' etc..
Thanx in advance.
Sounds like a fun app to develop.
Some Pointers:
Immediately off the bat, I would say look into creating your own Controls for the floating objects.
I would suggest tackling a smaller project, or maybe a few small to medium size projects. p
Try making a few apps with WinForms or WPF. Also look into XSL:FO.
Immediately off the bat, I would say look into creating your own Controls.
There was a WWDC session that talked about iOS text. I don't think it's violating NDA to say this is going to be a very hard project. No, make that very, very, very hard.
You will probably need to do all UI yourself, and use Core Text for rendering of the text. (But I believe you need to draw selection, etc.) And do the layout yourself.
I want to view a local PDF (in my iPhone app) and be able to jump to a specific page. Seems like the UIWebView is the way to go, however, I can't find any information on jumping to specific pages. Is this impossible? Are there any other techniques I can use?
thanks,
Howie
You can try using Javascript. See this link for more details. You'll want to use something along the lines of #"window.scrollTo(0, x);", where x is some value you determined by playing around with the WebView.
Another option would be to set the content offset of the UIWebView like Mike pointed out (but without involving JavaScript):
webView.ScrollView.SetContentOffset(new PointF(0, y), true);
(sorry for the MonoTouch code but ObjectiveC is still on my todo list)
Alternatively to an UIWebView, you can use the Quartz API :http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf/dq_pdf.html
It's more complicated, but you should be able to do whatever you want.