Viewing Documents like PDF,DOCX,RTF files in Android - android

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.

Related

How to open documents located in Local Storage in android using WebView?

I have a doc/ppt/xls file located in my sd card. I want to open it without any third party app (i.e within my app itself) using webview. Though I am able to open documents by embedding it in google docs url like -
http://docs.google.com/gview?embedded=true&url=[filelinkHere]
But how to open a file located in internal or external storage in webview ?
Also, Suggest me any third party ALL-IN-ONE library for android to view all types of documents. I have tried ASPOS but it has few unresolved bugs and APACHE-POI is difficult to use.
I had the same issue few days ago .
i found Android PdfViewer best to view PDF files and Android PdfMyXml best to create pdf files in android.
For working with Word and Excel as a most reliable answer I suggest you to take a look at OliveDocLibrary .
If your documents are in cloud so there is an alternative way to display docx,pptx,pdf and such formats with a combination of Webview and googleDoc.
You might find other possible solutions in server-side machines or maybe a creative way!
Hope it help
You can integrate some library project to your project with which you can open the pdf file inside your app.
Reference :
https://github.com/tekinarslan/AndroidPdfViewer
https://github.com/JoanZapata/android-pdfview

How to convert a MS Office DOC/XLS/PPT & PDF to image on Android

We need to be able to import Office documents as images into an app. On Windows we use LibreOffice which has a command line --convert flag.
Now we need to do the same for Android and iOS.
LibreOffice is not ready for Android yet.
Open Office for Android (AdrOpen Office) is there, but it does not have the --convert line option
One possibility I am looking at is to use JodConverter, but the solution needs to work offline - my reading of JodConverter is that it "uses openeoffice.org", and I'm not if this means it accesses the web site when doing the conversion, or it simply requires some software components from openoffice.org to be installed locally.
Note I am not asking how to open the documents, but how to convert them to an image, which we then import as a background in our app. We do not need to "live edit" them.
you can use PDF2JPG app to convert PDF to jpg. This app is available on google playstore freely. for doc to jpg conversion , you need to use the combination of two apps. First you need to use Doc To Pdf app from playstore for convert it to PDF, which is freely available on google playstore then convert PDF to jpg.

Best options for archive library for Android

I'm creating an Android app that will handle collections of image files.
I'm looking for an archive format (and library) similar to .zip or .tar that meets these requirements:
Open source
Allows extraction of a single file without extracting
all files
Capable of containing image and text (probably json) files
I'm looking for something that is well supported on Android. Something that works for Android and IOS would be a plus.
What about Gzip? Open source and it has native support on Android.
For iPhone, you could use the ZipArchive library, though it may also have native support. (Search the SDK, I don't know how!)

pdf and word viewers in android

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.

To view PDF in android generated in Crystal Report

I have a PDF file which is generated in crystal Report version 13.0.0.99 which
generate a Pdf of Version 1.7 .but all other PDF which is not generated by Crystal Report can read in my application.
this link will get PDF file I created using Crystal Report.
http://www.mediafire.com/?d9b444vx0102vea
when i view this pdf in android i got the out put as
http://www.mediafire.com/view/?v0wzlqzhzqtiswb
what should I do to see this pdf in my application itself ?
Lots of sources for opening/ editing pdf(not sure from your question) on stackoverflow
1.) Use an intent to open a pdf - it ll open using an existing pdf viewer installed
2.) Take a look at
PDF Library for Android - PDFBox?
Android PDF Rendering
for open source libraries, commercial ones etc.,
Basically pdf and android dont go well together from a developer standpoint

Categories

Resources