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.
Related
Is there any opensource sdk which helps to display or render documents {PDF, docx, rtf,doc} files within my android application, without navigating to third party apps. There are tons of question out there both old and new ,most of them pointing towards the priced versions like
Artifex smart office for viewing documents
Aspose for converting file formats
Are there any opensource libs which can be used for this purpose. please guide.
Some say port Apache POI or Docx4j i dont understand how to do it.
If it was for pdf only i would opt PDF viewer. But what about other document types like docx and rtf.
I'm trying to draw my html formatted string into a pdf file for my android app, but the result is just the non formatted string with all the html tags visible.
Is there a way I can properly format the pdf file without using any external libraries? I can't use any for the app.
Or is there a way to convert an html file to a pdf file?
Is there a way I can properly format the pdf file without using any external libraries?
Not in any practical sense. If you have a large team or lots of time in which to write your app, you are welcome to write your own PDF generation code, as yms suggests in a comment.
Note that API Level 19+ has some HTML->PDF code in it, for the use in the printing framework, but it is not designed for generating arbitrary PDF files.
I can't use any for the app.
Then you cannot write any apps for Android, as every Android app involves libraries. The Android SDK is a library, for example.
I want to show a pdf (preferably) or a word document in my app; like a privacy notice screen. Many applications have it, so it should be possible. i tried loading a simple text file as a start but doesn't provide formatting, fonts or trade mark symbols. I've gone through a few posts but I couldn't apply it to my app. Could anyone tell me how is it done? Could I store the file somewhere in res folder and provide a path to open it through my code? I looked into the following link but I'm not sure if that's the right approach in my case android: open a pdf from my app using the built in pdf viewer.
Android does not support opening PDF and DOC files natively. You'd have to make your own implementation.
Like t0mm13b said, you should consider using HTML (+ CSS) instead and use a WebView.
We are developing an application which is able to open and modify a DWG file without converting it to other formats (e.g. PDF, JPG). In this application we need to allow the user to open and view DWG files.
Can someone please help us with this? Or suggest some other ways by which we can open and view DWG files without converting it to any other image file format?
We are developing an application...to
open and modify a DWG file
What in particular do you need help with? You're going to be writing an entire application devoted to opening a specific format of a vector drawing file -- this is no small task.
DWG seems to be an open standard, you can find the specification here (PDF link). To give you an idea of the complexity, it's a 225 page PDF document. That said, you may be able to find an open source DWG Java library that you can modify to use with Android. A cursory Google search brought up jdwglib (Java DWG Library).
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.