在 GWT 应用程序中显示 PDF 文件
我有一个PDF文件存储在服务器中,我想在客户端显示它。如何让pdf显示在需要的位置?
I have a PDF file stored in server and I want to display it on the client side. How can I make the pdf displayed in the required place?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以参考 PDF 文件创建框架小部件。 GWT 中的 Frame 小部件将在浏览器中呈现 HTML iFrame。
You can create a frame widget with a reference to your PDF file. The Frame widget in GWT will render an HTML iFrame in your browser.
我用过以下。它工作正常。可能对你有用。
GWT 客户端:
I have used following. Its working fine. May be its usefull for you.
GWT Client side: