PDF 预览和查看 [英] PDF Previewing and viewing

查看:31
本文介绍了PDF 预览和查看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个文档查看 Web 应用程序.您登录后,它会将您带到一个屏幕,您的所有文档都列在左侧.我想这样做,当您滚动文档时,文档的预览会显示在右侧.从那里您可以单击它以查看完整视图和打印功能.我不是在问如何做所有这些,但我想知道呈现文档预览的最佳方法是什么.这些文件都将是 pdf 并存储在服务器上.我正在 Visual Studios 2008 中使用 asp.net 3.5 mvc.

I'm creating a document viewing web application. You log in and it takes you to a screen where you have all your docs listed on the left. I want to make it so that when you roll over a document a preview of the document shows up on the right. From there you can click on it for a full view and printing capabilities. I'm not asking how to do all that but I'm wondering what the best way would be to go about rendering the preview of the document. The documents are all going to be pdfs and stored on a server. I'm working in asp.net 3.5 mvc in visual studios 2008.

推荐答案

要创建 PDF 预览,请先查看 StackOverflow 上有关该主题的其他一些讨论:

For creating the PDF preview, first have a look at some other discussions on the subject on StackOverflow:

如果这些都不能回答您的问题,您可以尝试更多操作:

If these don't answer your question, you can try a couple more things:

  • 您可以获得商业渲染器(PDFViewForNetPDFRasterizer.NET, ABCPDFActivePDF、...).
    不过,大多数都相当昂贵,尤其是当您只关心制作缩略图时.
  • 有一篇 CodeProject 文章 展示了如何使用Adobe ActiveX,但它可能已经过时,很容易被新版本破坏,并且其合法性不明确.
  • 在服务器上安装 GhostScript 并从中请求渲染任何页面的缩略图.
    我做了一个小项目,你可以在 Developer Express 论坛a> 作为附件.
    请注意 GhostScript through 的许可要求.
    我将它用于内部软件,并且运行良好.
  • You can get a commercial renderer (PDFViewForNet, PDFRasterizer.NET, ABCPDF, ActivePDF, ...).
    Most are fairly expensive though, especially if all you care about is making thumbnails.
  • There is a CodeProject article that shows how to use the Adobe ActiveX, but it may be out of date, easily broken by new releases and its legality is murky.
  • Install GhostScript on the server and request rendered thumbnails of any page from it.
    I did a small project that you will find on the Developer Express forums as an attachment.
    Be careful of the license requirements for GhostScript through.
    I use it for an internal software and it's working pretty well.

希望这会有所帮助.

这篇关于PDF 预览和查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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