问题描述
我创建一个文档查看Web应用程序。您登录,它需要你,你必须在左侧列出您的所有文档的屏幕。我想使它这样,当你将鼠标悬停在文档的文档的preVIEW显示在右侧。从那里,你可以点击它的完整视图和打印功能。我不问如何做的一切,但我想知道什么是最好的办法是去渲染文档的preVIEW。这些文件都将是PDF和存储在服务器上。我在asp.net 3.5 MVC的工作在2008年的视觉工作室。
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 preVIEW,先看看StackOverflow上一些关于这个问题的其他讨论:
For creating the PDF preview, first have a look at some other discussions on the subject on StackOverflow:
- How can I take preview of documents?
- Get a preview jpeg of a pdf on windows?
如果这些不回答你的问题,你可以尝试一对夫妇更多的事情:
If these don't answer your question, you can try a couple more things:
- 您可以得到一个商业渲染器(,的,的,,...)。
大多数是相当昂贵的,虽然,特别是如果你关心的是制作缩略图。 - 有一个的展示了如何使用Adobe的ActiveX,但它可能会过时,容易被新版本打破,其合法性是阴暗的。
- 在服务器上安装Ghostscript的,并要求从任何网页的呈现缩略图。
我做了一个小的项目,你会发现在作为附件。
小心通过Ghostscript的许可要求。
我用它内部的软件,它的工作pretty很好。
- 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 previewing和观看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!