为什么doc和docx在iOS中丢失样式信息?
我想在iOS中打开docx,doc文件.
I wanted to open a docx, doc file in iOS.
我尝试了两种方法:
1.Web视图
2.QLPreviewController
2.QLPreviewController
在两种方式下,我都丢失了与文档关联的样式信息.
In both the ways I am losing the style information associated with the document.
为什么会这样?可以通过任何方式保留样式信息.
WHy this happens? Is in any way possible to retain the style information.
有什么办法可以保留此信息吗?
Is there any way we can retain this information?
样式可以是:
- 文档中的表格-以doc格式显示,但不以docx格式显示
- 仅文档中的特定文本可以用颜色突出显示
众所周知,iOS通过UIWebView支持MS Office文档.
iOS has support for MS Office documents through a UIWebView, as you know.
这意味着文档已以某种方式转换"为HTML表示形式,然后显示.
It means the document is in some way «converted» to an HTML representation, and then displayed.
UIWebView不是MS Word .
不要指望它像它那样运行,并支持它的所有功能.
UIWebView is not MS Word.
Don't expect it to behave like it, and support all of its features.