I followed this guide
http://www.ioslearner.com/convert-html-uiwebview-pdf-iphone-ipad/
to generate PDF from a UIWebView.
What I actually need to do is generate a PDF from the cordova UIWebView in my app.
Does someone know how to do this? I think it will be necessary to write a plugin for this..
Thank in advance.
Use this KAPDFPlugin .Add into the plugin into your project and follow the instructions to link it to your code.
Yes, you'll need a plugin for that.
You already have the native code you need, so it won't be difficult
Related
I am currently working on a hybrid app for iOS. I am using Ionic/Cordova to make it. It's my first time using it.
I want to be able to read an xlsx file that is currently on my iPad and show that data in my app in a table format. I have read about the ngCordova file plugin at http://ngcordova.com/docs/plugins/file/. I have also read about AlaSQL.js at https://github.com/agershun/alasql. Can I use these together to do my task? Or should I use one over the other?
I find the documentation for the file plugin to be a bit confusing. Can someone give me a pointer or example of accessing the file and outputting it?
Thanks!
try to use file plugin to retrieve directory list and fileOpener2 plugin to open xlsx file.
I am using AFHTTPNetworking In my tutorial.
I have one OutLet of ImageView
and I want to show some images from server.
I have server url like this link. I have not worked with this and i am new in iPhone. Can anyone suggest me a proper tutorial for this ?
I think you should read the tutorial: http://www.raywenderlich.com/59255/afnetworking-2-0-tutorial.
This is a tutorial is easy to understand about what should you need to solve your problems.
I would like to advice you to use SDWebImage library. It's among the best library I have used for Image caching.
Import UIImageView+Webcache in your project and use sd_setImageWithURL method.
I've got the grails export plugin working nicely but is there any way of embedding an image in the produced pdf report? I cant find an obvious way of doing it :(
many thanks
Tom
Why would you require to put an image when export plugin only talks about domain object. If you are looking for generating report which has images and other html stuff, I think itext library is the way forward.
Thanks, KJ
Is there any way to upload a file sending additional parameter (like AJAX or so) with Blackberry WebWorks? (I tried to use Phonegap FileTransfer, but it doesn't work for me at all. Secondly, I tried WebWorks UploadDownload extension, it works fine, but there is no possibility to send parameters.
Can anyone help me?
Have you considered using XHR2?
Good article over here - http://www.html5rocks.com/en/tutorials/file/xhr2/
As I heard, XHR isn't working on Blackberry Playbook
I'm currently writing a mobile app (hopefully iOS or android) using the jquery mobile framework and phonegap.
It'll need to export/send csv files in some way to the users, but I'd be interested to hear ideas or suggestions about the best way of doing so. If this can be done on the js side of the app that'd be ideal as it's what I'm most familiar with. A couple of options I've considered are:
Uploading the file using the google docs api
Writing the file to the file system (then export e.g. via iTunes)
I'm new to this so any suggestions gratefully received! Thanks for your help
There are a few options that you could use depending on how you want it to work.
The main options would be to
Use the File API (http://docs.phonegap.com/phonegap_file_file.md.html#File) to store files on the filesystem of the device.
Upload the file to a server using a standard XMLHttpRequest.
Write a native PhoneGap plugin on each platform that you are interested in that could connect to Google docs.
As Dave pointed out you can write files with the FILE API. I have used the file api on iOs to write custom log files and havent found any yikes so far.