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.
Related
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
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.
I want to open an Excel file from an SDCARD on an Android phone. Which API should I use?
I think you have to use an API such as JExcelApi
I have no experience with this API but apparently you can use it with Android.
I think you'll still want to use the JExcelApi to read the contents of the file. As far as displaying the data on an Android device you'll probably want to look at TableLayout. Here is an answer outlining TableLayout to create a spreadsheet type display. This could also be done by reading the Excel file contents into HTML and displaying the HTML in a WebView
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 have an app where I've button on a webpage that is rendered inside a webview.
Now on click of button , a pdf file gets downloaded , and the same would then need to be opened inside the same webview.
attach a download listener to the web view and change the url as follows..
"https://docs.google.com/gview?embedded=true&url=https://www.example.com/xxxxxyyyyyxz.pdf"
example
https://docs.google.com/gview?embedded=true&url=https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf
it's a link used to open pdf without downloading it...
I hope it solves your problem..
I've found that the google viewer seems to work within the android browser for viewing online PDF files. You could build a link to your pdf so that it is displayed in the viewer. I've not tried doing that within a WebView though.
UPDATE
The link is dead, there is an explanation of how to get the functionality to still work at this link.
In case this link also dies, here is the relevant section:
While the page is no longer available as it redirects to Google Docs/Drive, you can still use the Google Docs Viewer. Paste this URL in a new tab:
https://docs.google.com/viewer?url=
and then paste the address of the document you want to view online. Here's an example:
https://docs.google.com/viewer?url=http://research.google.com/archive/bigtable-osdi06.pdf
I do not think that the present android chrome based browser can support pdf. There are discussion about the same in android forums ( ex: link1 link2)
Your best bet to show pdf is to have adobe pdf reader for android installed.(or concisely put, not possible in web view)
I don't think any browser other than Chrome supports rendering PDFs without a plugin or third party tool. It's probably easier to let the user use his own app to open PDFs.
I used the IText PDF library mentioned in this thread
Android : Is there any free PDF library for Android for a sample project. You could try getting using this API to get the PDF page as an image. I am not familiar with every aspect of Itext so it might have better way to do this.