如何显示在微软Surface应用程序的PDF文档? [英] How to display a PDF document in a Microsoft Surface application?
问题描述
我想在我的微软Surface应用程序中显示PDF文档。我做了一些搜索,发现有很多的可能性,但所有的看起来有一点点的缺点,如果微软的Surface使用
I want to display a PDF document in my Microsoft Surface application. I did some searching and found a lot of possibilities, but all of the seem to have a little drawback if used in Microsoft Surface.
的此insteresting 方法似乎不错,但我有麻烦,检查如何要启用滚动。
This insteresting approach seems nice, but I have trouble to check how to enable scrolling.
不知道如何使在那里滚动?
Any idea how to enable scrolling in there?
推荐答案
在我们的应用程序,我们有必要显示了很多的是从我们的客户提供PDF格式的内容。而不是直接显示在PDF我们创建图像文件(每个页)和创建的控制来改变页,滚动,调整大小和任何所需的显示数据。
In our application we have the need to display a lot of content that is provided as PDF from our customers. Instead of directly displaying the PDF we create image files (one for each page) and created a control to change pages, scroll, resize and whatever needed to display the data.
有缺点:没有PDF表单或按钮,我就不一一列举了。但这种功能在文档中一种业务逻辑,而应该在你的应用程序中的多点触摸的另类代表,真的。
There are drawbacks: no PDF forms or buttons, I won't list more. But this features are kind of business logic in a document, and that should be represented with a multi-touch alternative in your application, really.
它有时显示的要求大量的文字,但如果可能的话,你真的应该最小化,因为表面台并非设计用于提供最佳的阅读体验。
It's sometimes a requirement to display large volumes of text, but if it is possible you should really minimize it, as the Surface table isn't designed to provide the best reading experience.
修改:您可以尝试窗口消息发送到PDF查看器控制当特定的手势进行。必应地图的控制用这种方式AFAIK。不过,我不认为这会增加一个很好的经验。
Edit: You could try to send window messages to the PDF viewer control when a specific gesture is made. The BING map's control was used that way AFAIK. Nevertheless, I don't think this adds to a good experience.
这篇关于如何显示在微软Surface应用程序的PDF文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!