I want to read a PDF in my application so which is the best way for that?
PDF to image convert and show.
direct PDF reads form server using PDF reader.
There are set of libraries and sdk you can use to read pdf in android.
http://www.qoppa.com/android/pdfsdk/
http://code.google.com/p/droidreader/
https://github.com/jblough/Android-Pdf-Viewer-Library
Related
Does anyone know a way to embed a PPT file (powerpoint) into a HTML?
I found solutions like embed through an iframe by Office Web App and/or Google Docs. I tried them and works fine into the HTML, but in my case I need to have the PPT file into a personal server.
Other options I found are like Embedit.in, a flash embed that shows th PPT (no convert the PPT to SWF (flash format)).
But, I still looking for a way for show a PPT file saved in a personal server into a HTML, any idea? any webservice for this problem?
Before PowePoint 2010 you could save the ppt to html using PowerPoint API.
Did you checked also for api vendors? It's a common issue probably there api to do that.
Suggestion...
Convert the ppt to pdf and use the code generator # http://pdfobject.com/generator.php .
Use standard (not java) .
There in one small mistake in the code they generate Remove the hashtag # at the end of the url.
i want to create an android application in which i have to run ppt which will be present in sdcard. So far i have got to know that the only way to run the ppt is either calling different applications which deal with this or embed that in webview.
Thanks in advance
You cannot embed ppt, doc, excel etc in a Webview in android. Those are MS Office formats. You cannot even do that on a desktop pc with firefox/chrome.
EDIT
If the ppt is online you can use google docs to convert your document to html and than display it:
webview.loadUrl("http://docs.google.com/gview?embedded=true&url=http://myurl.com/mySlide.ppt");
If the ppt is on SD card, either:
a) Open it with default phone application. See How to use an intent to open a ppt with DataViz's Documents To Go
b) you need to convert it to html beforehand. There are many online/offline tools for that. Google "ppt to html converter"
Another possibility (depending if you no need your PPT file into the SDCard) is embed a PPT in a WebView using an iFrame like Office Web Apps or GoogleDocs.
I tested and works, but this options requires to have the PPT file into servers of Office Web Apps or GoogleDocs.
I want to use PDFbox to read and display the contents of a PDF document. I can extract the text from the PDF document using PDFTextStripper.
My problem is how can I display all the contents in PDF document as it is? I want to display the PDF document like it is displayed in the applications like Adobe reader. Is it possible using the PDFBox in Android?
You could export the PDF document as images and display those. You can find an example here.
I need to check if a Richmedia content (video embedded in a pdf file) is available in a pdf file or not via mupdf library for an android application.
If it is then I need to retrieve the stream content via pdf parsing and convert in to a byte array and run the video found in the pdf.
Is this possible?
MuPDF does not support embedded video. You can still use the library to examine the PDF object structure and extract data streams from PDF files. Look at the "pdfshow" and "pdfextract" tools for inspiration.
You could try using iText for android, although it seems to be a constrained version. There is a post on how to extract media objects from pdf files with iText here.
Some of the members says that the iText library is only for creating a PDF document,we cant read the PDF document using iText library.Is that true?
i think u can use itext library for reading also, but the problem is that u cant have tables & images or format of pdf pages i.e. only text can be read