Why doc and docx losing style information in iOS?

人走茶凉 提交于 2019-12-24 06:37:40

问题


I wanted to open a docx, doc file in iOS.

I tried two ways:

1.Web view

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?

The Style could be:

  1. A table in document - displayed with doc format but not with docx format
  2. Particular text in the document alone can be hightlighted with a color

回答1:


iOS has support for MS Office documents through a UIWebView, as you know.

It means the document is in some way «converted» to an HTML representation, and then displayed.

UIWebView is not MS Word.
Don't expect it to behave like it, and support all of its features.



来源:https://stackoverflow.com/questions/8928633/why-doc-and-docx-losing-style-information-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!