How do I preview a file using InputStream in WebView iOS- swift - ios

I am working on file previewing in iOS. I have tried using UIWebview to load the data and UIDocumentInteractionViewController. However, these methods won't work well with large files.
I was thinking of using FileStreams InputStream/OutputStream to preview files.
How can I use UIWebview to preview file from an InputStream.
Would love to know a good approach to this problem?.

Related

How to view .dwg (AutoCAD) files in webview in ios

Want to View .dwg files in UIWebView in Iphone,
I have tried to load the URL of .dwg file in webview.But its not loading.
Please suggest any 3rd party browser or any other way to viewing .dwg files.
Thanks in Advance.
here is the list of supported document formats, it's no AutoCAD there
https://developer.apple.com/library/ios/qa/qa1630/_index.html#//apple_ref/doc/uid/DTS40008749
you can try to use Autodesk DWF Toolkit for this
http://usa.autodesk.com/adsk/servlet/index?id=823771&siteID=123112

How to display a .pdf on BrowserField in Blackberry 7

I'm trying to display a .pdf file on a browserfield but somehow it's not opening in my app however it works fine with .txt files.
I'm reading .pdf file from local storage and using
browser_field.displayContent(fileinbytes, "application/pdf", "");
but it's displaying a player like image on the screen and not actual result.
If anyone has any idea about the same, i'm all ears.
As far as I can tell this isn't possible (browserfield doesn't even fully support javascript).
This post suggests that you can view it via Google, which wouldn't be from local storage.
(Un)luckily blackberry is very similar to Java ME, so you can often use those libraries as is. Apparently JPedal can render pdf files for J2ME, and might be worth a look.
Other than that, I don't think you'll have much hope. Good luck

PPTx with embedded video play on iOS

I am making an application which should be able to play any videos embedded in a PPTx. Currently using Quicklook Framework for iOS I am able to see the text or any images but not able to play the video. I thought of one solution as, Converting the PPTx to zip and then parse the XML files to give the video and then play, which doesn't look very practical as it needs to be done for every file where the structure keeps changing with very slide/PPT Slideshark is able to play videos embedded in a PPT. Any Ideas on how to achieve this ?
Converting PPTs into HTML5 is one of the solution.

building a document preview webpage

Hi i'm wanting to create a webpage in which i can pass a url to a document and it previews it. the idea behind this is so i can create a responsive web view for android so i can preview documents from with an app i have basic knowledge of php and html but if some one could point me in the right direction? i have had a look around but can't find anything that basic i don't need to edit the documents just view them. Does anyone know how to do this?
ps: the docs i want to preview are .xl .xls .doc .docx .pdf .ppt etc
Here is what looks to be a decent open source option.
http://flexpaper.devaldi.com/
One option would be to convert the documents to .pdf first using OpenOffice and then preview them using pdf.js

How to read pdf file in ios .I am not using UIWebView

I want to read a pdf file which is coming in URl from server. I am not using UIWebview.
So, i just want to know that is there any way to view that pdf file without downloading in to device. Just it be readable or buffered, not stored.
Any suggestions for that.
The easiest way to show a PDF outside of a UIWebView is using the QuickLook framework:
http://developer.apple.com/library/ios/#documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/UsingtheQuickLookFramework.html
However, as isn't unreasonable, Quicklook requires URLs of a "file" type.
So without using a UIWebView, you'll need to add your own code to download/cache/display, which isn't hard. If you need sample code, let me know.

Resources