为什么doc和docx在iOS中丢失样式信息? [英] Why doc and docx losing style information in iOS?

查看:210
本文介绍了为什么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?

样式可以是:

  1. 文档中的表格-以doc格式显示,但不以docx格式显示
  2. 仅文档中的特定文本可以用颜色突出显示

推荐答案

众所周知,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.

这篇关于为什么doc和docx在iOS中丢失样式信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆