PDF Previewing and viewing

后端 未结 2 681
不知归路
不知归路 2021-01-05 12:36

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 y

2条回答
  •  庸人自扰
    2021-01-05 12:55

    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:

    • 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.

    Hope this helps.

提交回复
热议问题