开发者

PDF reviewer in C# (ASP.NET/Silverlight?) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 9 years ago.

Improve this question

I'm essentially planning to mimic the comment functions on PDF files, but online. That is; a user should be able to log in and upload a PDF file, and then numerous different users should be able to add comments etc to this same file (and view the file, with comments, online).

  • External libraries are ok. Free obviously preferred, but commercial ones are fine if they provide a lot of the needed functionality.

  • Comments don't necessarily need to be able to be exported from the site. I.e. if the comments are just put as a layer on top of a PDF file (and not in the actual file) that's ok. But obviously the more export functionality the better.

I have looked at a few libraries (using the related questions and google) and while I find some t开发者_如何学Chat seem to do sort of what I want I'm not sure they are the bee's knees plus I would like to do as much myself as possible.

The three basic approaches I've thought of is:

  • Use some sort of native PDF viewing and then just smack down a layer on top of it where you can move around comments etc.

  • Convert PDFs to HTML and work from there. Problem here it would either require proper PDFs (e.g. non-scanned) or really good OCR which seems a bit tedious.

  • Convert PDFs to images and work from there. I'm afraid this will create massive images however. We're talking PDFs that can be hundreds of pages. One option would of course to just display one PDF page (image) at a time.

And last - should I look at Silverlight for this or go with ASP.NET?

Ideas and input concerning this project are much appreciated.


I am a Silverlight developer myself, so my answer will be somewhat biased. But if I were you I would look into this component:
http://www.pdftron.com/silverdox/index.html

If that component does a good job of handling your .pdf files, the commenting functionality in itself should not be too difficult to implement in Silverlight. Of course, it depends on your exact requirements and also on how much experience you have with the technology.

That would be my starting point, anyway.


You may want to take a look at PDFWebViewer.NET from TallComponents. It's an ASP.NET Ajax based viewer that takes the PDF-to-image approach. There are some live demo's and a freely downloadable trial version on the website.

For the comments you can add some custom code to handle commenting. TallComponents also has other components that will allow you to manipulate the PDF documents to add PDF comments (compatible with Acrobat).

As for your question on Silverlight vs. ASP.NET, I think that is choice you should make based on your target audience. If you expect a lot of Windows users, Silverlight will be fine. If you need to support non-windows users and mobile devices you're probably better off with html and script (for the next year or so anyway).

As for your worries about massive images for the PDF-to-image approach; that all depends. An image of a page at screen resolution will compress quite nicely for most documents and a good PDF renderer will optimize for the required zoom factor. On top of that the PDF format allows quick random access so rendering pages selectively is perfectly ok. PDFWebViewer.NET is fast enough to render most documents page-by-page on demand as the document is being viewed.

Full disclosure: I work for TallComponents on PDFWebViewer.NET.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜