I'm using an UIWebView for viewing .pdf, .txt, .xls, .ppt files. I used webView loadRequest method for viewing these files and its working fine. I need to view files such as .odp, .odt, .ods etc, but its showing only blank page in UIWebView. Is there any effective method for viewing these files using UIWebView or any direct method for doing the same?
Open .odp, .odt, .ods files using WebView
1k views Asked by Vishnu Kumar. S At
2
There are 2 answers
0
IamAnil
On
WebODF libs integration with UIWebView: Integrated WebODF libs with UIWebView and it's working fine. Please find the below steps
1) Load index.html file from WebODF libs on UIWebView
2) Inject .odt file On webViewDidFinishLoad using below code snippet
let jsFunction = "createEditor(\"../default.odt\", \"Test\", 375, 667)" webView.stringByEvaluatingJavaScript(from: jsFunction) 3) Successfully load the odt file.
More information : https://github.com/kogmbh/WebODF/issues/945
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in UIWEBVIEW
- iOS WKWebView's WKProcessPool - when is it safe to share the same process space?
- I there a Flutter package that implements UIWebView?
- How to prevent the Audio `play` method from stopping sounds in backgrounded apps in a Webview?
- How to open a downloaded .ics file in Calendar app?
- Where to persistently store cookies from WebView IOS?
- open Webview as full screen tab intellij plugin development
- Apple rejected the project because of using UIWebView in pod
- UserAgent cannot be changed from UserDefaults only iOS 17 Device using Xcode 15
- ITMS-90809: Deprecated API Usage with AppsFlyerFramework pod
- Outlook calendar download in webview not displaying the right time in iOS app
- iOS 17 , when entering Chinese characters, the program crashes. The system is using UIWebView
- Delete all WKWebView and URLSession related cached data
- Convert WKWebView to PDF / Swift
- upgrade UIWebView to WKWebView in Cordova
- Is UIWebView will continue in iOS 17?
Related Questions in ODT
- Centering text in odt files
- How set specific font in table cells using ODF Toolkit?
- How to download response type document with axios on front-end application?
- How can I find a replace a string in an .odt file in Python and output it to another .odt file?
- How to generrate odt files from templates in Python
- How to convert a PDF file to a LibreOffice(ODT, ODS, ODP) file in PHP?
- Replace a placholder in a file with git commit short sha
- How to merge odt files in Python
- Problem when generating an odt with opentbs, values of the same key displayed on the same row and not in column
- VBScript created by Indesign Extended Script, does not execute part of the code - WScript.Shell run
- Transform .docx document generated with PhpOffice\PhpWord\TemplateProcessor to .odt format
- I would like to edit an odt document using python. Just a simple swap of keywords. Is this possible?
- XDocReport: Issue by filling tables with Freemarker in ODT-file
- How to convert a "pdf" to "odg" file with OpenOffice cmd
- How to save base64 images in ODT opendocument/ODT files?
Related Questions in ODS
- How to detect "strikethrough" cells in an ODS spreadsheet file in Python?
- Python script that takes data from multiple .ODS files and joins it all in 1 file
- Read ods file after uploadind using FileUpload
- How apply changes on ods file using the library ezodf in python?
- Why is it possible to write to first row of .ods document by python but not to others?
- How to read the hyperlinks from an .ods file?
- Title and footnotes alignment by ods pdf text option
- How do you surpress a new tab opening when running a SAS Stored Process on SAS Web Services?
- replace NAs in once column ods file in Python
- PHPSpreadsheet add borders to ODS file
- Why have space in my text in my sas ods pdf
- What is this SAS note saying? ODS PDF printed no output
- sas proc pdf doesn't export the files
- How can I search ods file for keywords and show entire row, not just the cell that contains keyword?
- How to convert a PDF file to a LibreOffice(ODT, ODS, ODP) file in PHP?
Related Questions in ODP
- Oracle to EF 6 mapping
- Visual Studio 2019 "Add Connection" window crashes when trying to add Oracle Database Connection into Server Explorer > Data Connections
- How to decompile the blob fields in a SAP ERP using gzip basXml as format with python
- Can't find Oracle.DataAccess.dll
- How to repeat a delta using SAP_CDC connector from Azure Data Factory
- Oracle.ManagedDataAccess.Client.OracleException (0x80004005): Connection request timed out
- IPsec anti-replay service, sequence no is less than lower sequence in the window, packet will be dropped?
- Connections gets closed and application hang with ODP.Net 4.122.19.1 (19) and Oracle database 11.2.0.4 with SQLNET.EXPIRE_TIME set
- Trouble getting started with ODP for .NET
- Oracle - some of polish characters are not display
- odp net conex Fails error c# visual studio 2017 oracle 11
- Open .odp, .odt, .ods files using WebView
- Configuration of Oracle Network Encryption with C# (ODP.Net) is ignored
- Oracle Data Provider - call ExecuteReader to get OUT parameters
- Open document format: meaning of "G" command in drawooo:enhanced-path attribute
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Have you tried using the UIWebView method load, specifying the MIME type? For example for an .odt file:
If that does not work, then I'm afraid you'll have to write your own open office document loader...