开发者

UIWebView and Word Document Changes Formatting

开发者 https://www.devze.com 2023-02-15 10:58 出处:网络
Ok, so I have an iPhone application that displays Word documents for certain terms and all.My problem is that the text seems to be \"wrapped\" or so开发者_Python百科mething else like that.This causes

Ok, so I have an iPhone application that displays Word documents for certain terms and all. My problem is that the text seems to be "wrapped" or so开发者_Python百科mething else like that. This causes the words to not line up, which ultimately makes a lot of my Word documents contain incorrect information

I am inserting the .doc files into a UIWebView which is set for "scale pages to fit". Also, when I zoom in it still stays the same way. This is happening in both the simulator and the actual iPhone.

All help is appreciated!

Below are two screenshots. This first one is of the iPhone app:

UIWebView and Word Document Changes Formatting

This second one is of the Word document and how the text should really look:

UIWebView and Word Document Changes Formatting


Save the doc as an HTML and use the HTML in your app. That should resolve the issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号