如何在 Microsoft Surface 应用程序中显示 PDF 文档?
我想在我的 Microsoft Surface 应用程序中显示 PDF 文档。我做了一些搜索,发现了很多可能性,但如果在 Microsoft 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.
This insteresting approach seems nice, but I have trouble to check how to enable scrolling.
Any idea how to enable scrolling in there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在我们的应用程序中,我们需要显示客户以 PDF 形式提供的大量内容。我们不是直接显示 PDF,而是创建图像文件(每一页一个)并创建一个控件来更改页面、滚动、调整大小以及显示数据所需的任何内容。
有缺点:没有PDF表格或按钮,我就不多列举了。但这些功能是文档中的一种业务逻辑,实际上应该用应用程序中的多点触控替代方案来表示。
有时需要显示大量文本,但如果可能的话,您确实应该将其最小化,因为 Surface 表格的设计目的并不是提供最佳的阅读体验。
编辑:您可以尝试在做出特定手势时向 PDF 查看器控件发送窗口消息。 BING 地图的控件就是这样使用的。尽管如此,我不认为这会增加良好的体验。
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.
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.
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.
您可以尝试以下操作: http://weblogs.asp.net/ israelio/archive/2004/07/20/188664.aspx。
但即使你解决了这个问题,这也是一个非常糟糕的用户体验。 PDF 中的超链接将不起作用,Adobe 的按钮将无法单击,滚动条实际上将不起作用,等等。换句话说,您最终会得到一个非常糟糕的 Surface 应用程序。我强烈建议您花精力弄清楚如何将内容呈现为本机 WPF 内容,这样您就可以很好地与 WPF 和 WPF 一起使用。多点触控。
You could try this: http://weblogs.asp.net/israelio/archive/2004/07/20/188664.aspx.
But even if you solve it, this is a really really lousy user experience. Hyperlinks in the PDF won't work, buttons from Adobe won't be clickable, the scrollbars wont actually work, etc. In other words, you're going to end up with a really lousy Surface app. I strongly recommend putting effort into figuring out how to render content as native WPF content that you can make play nicely with WPF & multitouch.
一种方法可能是使用 WPF WebBrowser 控件 与 Google 文档查看器结合使用。
One approach might be to use the WPF WebBrowser control in combination with Google Docs Viewer.