I see on this post that Batik is the way to open SVG files with Android: svg files rendering in android
But in the post is not explained how to integrate batik with android.
Someone know how to use Batik with Android to open and show SVG files?
thanks
Related
I want to open a file (pdf file to be exact) in iOS and Android through my cocos2d-x Project. It is to serve as help in my game. Is there any way to do so. I found we can open it in webview but how to do so on both iOS and android?
Thanks in advance
Short answer is no! Cocos2d family does not natively support PDF.
However, you can use open source C++ libraries to convert PDF to PNG on fly and load it as a texture in cocos2d-x.
My recommendation is to covert pdf to png on a PC and load png in cocos2d-x.
I did it using WebView both on Android and iOS. Also #kasra was correct and his way too works as a solution.
I need to show the pdf and the word files from the sdcard into the application.
I am looking out for libraries that can be integrated for this.
There are a few which I surfed:
1) Vudroid
2) jBlough
3) apdf and so on...
4) olive (for word)
I need a library which can show both these formats or either of the two.
Secondly, which one would be a better to go with. I was unable to find the libraries apart from the jBlough and olive. Can somebody aid me with few links for these libraries?
Note: I am not looking for implicit intent.
You can use Document Viewer and Converter for Android. It is MIT licensed Android application that can view Microsoft Word, RTF and OpenDocument Text files and convert them to PDF, DOCX, DOC, ODT, RTF and HTML.
The application uses Aspose.Words for Android to process, render and convert the documents and uses some basic Android platform's features to lazy-load and cache page previews.
Disclosure: I am a developer at Aspose.
Check out this library:
http://www.csr.com/products/directoffice-mobile-sdk
It will convert Office and PDF to PNG or PDF. The PNG files are easy to display in your app.
I want to create an PDF that contains images. I have used the iText library to create the text portion of the PDF, but have been unable to find any way to add images.
Separately, I would also like to upload this to dropbox after creating the PDF.
Does anybody have any suggestions of where to look?
You can try ImageMagick: http://www.imagemagick.org/script/index.php.
It is a c/c++ library and is required to use as JNI in android. You can use JMagick as wrapper for java
I am curious how to create a simple PowerPoint presentation viewer for Android. I am focusing on the Office 2003 and 2007 formats (which means .ppt and .pptx). How do I read .ppt or .pptx files and show them like a picture slideshow on my Android app?
Well that's a loaded question. Are you seriously thinking someone will write down the whole process for you? Have you done any research?
I'd start by seeing if there are any java libraries for working with .ppt files. Secondly, I'd see if I can use it in Android. Then I'd use the Android SDK to create the app using the said library.
Easy.
How to code for reading a pdf file in android? i want to build an app like RepliGo reader. So, Please enlighten me to read pdf by using android sdk or ndk.
Learn Java
Download the SDK with Eclipse
Work through some tutorials to get a flavour of programming on Android
Have a look at this tutorial on reading pdfs in Java
Write your app!