I am creating an app to read PDF file. I'm using WebView to load the PDF file. Below is the code:
var wv = Ti.UI.createWebView({
backgroundColor:"gray",
border:1,
height:410,
url : "file.pdf"
});
win.add(wv);
I'm wondering if there is any way to get the page number of the PDF and to navigate page by page. I did not find any way to do this. Any help would be appreciated. Thanks in advance.
I don't think that this is possible with Titanium WebView component as it is. There are several PDF Reader plugins available for Titanium which you could use.
You can also try to use pdf.js and include it in WebView and try to manage the things you want. But i never tried to use pdf.js before i in Titanium or mobile environments at all.
Related
I am new to android developement.i had created one page in jquery using html and css and i want to add it to the android activity but i am unable to do it,can anyone please provide me proper code for it?
If you're talking about how to make a hybrid app (using HTML/CSS/Javascript to make an application but still have native Android functionality) I would take a look into Phonegap. Just follow the directions and it lets you upload HTML/CSS and your AndroidActivity simply has to open it. Hope this helps.
I have an iPhone app that uses a native Rss feed reader, and i wanted to make a button on it that would take you out of the app and bring you to the full story in safari, but i dont know how to code it. I used a tutorial to make the rss reader: cocoadevblog.com/iphone-tutorial-creating-a-rss-feed-reader . All of the code that I am using is from that tutorial, except for the part about the podcast.
If someone could help me with this it would be greatly appreciated.
Thanks!
Sam
You can use the openURL method to open a URL in Safari.
I m opening pdf file in uiwebview from my app. That pdf contains some web links. But i m getting trouble while opening links from that pdf. Anyone has done this?
Lots of fun ahead of you :)
Here is the best on SO: Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?. Contains lots of links to other questions based on topic.
I am working on the application, in which I need to access the links which are in the pdf. Text which are in linked shows in different color but there is no click option in iphone to visit that links. same pdf shows link in browser and can be accessible.
Does anybody has any idea how this could be possible.
Thanks in advance.!!
You can use the webview to show the PDF and then in the webview make sure that the detectlink property is changed to true,this might solve your query
I'm looking for a small tutorial that can help me use svg images in iphone application. I'm trying to learn about svg format, and would love to know if there is relevant material from apple out there? particularly, w.r.t. iPhone.
Are there any open source libraries, or frameworks in iPhone SDK 3.0+ for SVG?
Any help is appreciated. Thanks.
Mustafa
The UIWebView class will render SVG files.
To demonstrate this, put your SVG file on the web somewhere and view it with Mobile Safari.
If you need a tutorial on how to use UIWebView, search Google on "UIWebView tutorial".
You might want to check out this project:
https://github.com/splashdust/SVGQuartzRenderer
It enables you to at least get past UIWebView.