4

I need to present Word and PDF documents in a read-only preview, via an ASPX/HTML page to my internal users. In a related requirement, I need to present editable Word documents, via ab ASPX/HTML page, to parties outside of our network - effectively the public.

We cannot rely upon Word or Adobe-type PDF plugins being available on the destination PC.

Can anyone suggest a way to do this?

Edit - For clarity, the document/data would ideally stay on our own servers.

Danny
  • 329
  • 3
  • 5
  • 12

4 Answers4

1

You could use the Zoho API or, if you need to keep all data on your own servers and validated clients at all times, you could try the Aspose components.

robertc
  • 74,533
  • 18
  • 193
  • 177
  • The data does need to stay on our servers. The Aspose option looks as though it only allows the documents to be rendered and not edited... – Danny Apr 29 '13 at 16:32
  • @Danny Yep, you'd have to write your own editing component, or convert to a format which is more easily editable and then convert back afterwards. – robertc Apr 29 '13 at 16:35
1

What about using Google Docs API? You could use either their word-like doc or a form to get the data you need, and then present that internally.

Not sure if this meets all of your requirements, or is an available option.

For our company, we have a few tools that utilize Google Docs. We upload data dynamically to them for specific needs.

Based on your requirements, maybe it's best to just write your own. I haven't created a Rich Text Editor. But it looks like there are quite a few tutorials online. Here is a basic tutorial for a rich text editor. It's using javascript, HTML, & CSS. If you prefer to not use js, then you may need to look for other tutorials.

This isn't the most glamorous solution, as it looks like the users view would be HTML. I'd think you could have it updating dynamically off to the side with an actual rich text view (similar to how Stack Overflow has theirs below an answer or question being written).

Update Over the weekend I was exploring HTML5's contenteditable attribute, I came across an editor that builds off of that called Aloha Editor. It's a WYSIWYG type editor. But if that's something that you desire for your clients, than this would probably be a pretty simple integration. I have yet to use it, but it seems like it would be a great fit - if you decide to go the route of building your own editor.

EnigmaRM
  • 7,523
  • 11
  • 46
  • 72
  • Hosting data elsewhere, for example with Google Docs, is a none starter unfortunatly. Equally, we need changes made to the document to be reflected back 'locally' to us. – Danny Apr 29 '13 at 18:41
  • Oh right. Need the data to reside on your server. How _fancy_ does the doc editor need to be? Can you just do a basic Text field that they put their content in? Or are you wanting them to be able to have formatting abilities? – EnigmaRM Apr 29 '13 at 18:49
  • 1
    I updated my answer with another possible solution. Probably not the most ideal. But would be a fun project & give you the most control over the long run. – EnigmaRM Apr 30 '13 at 15:45
  • The Aloha Editor looks like a very viable option, thanks for following up. Since my OP, there is also the possibility we might get away with the Google Docs API. – Danny May 07 '13 at 21:32
1

If you're interested to provide documents in a view-only way then you can try GroupDocs as well: http://groupdocs.com/. They offer viewers for different file types which you can add to your website very easily: http://groupdocs.com/apps/viewer.

Shahzad Latif
  • 1,408
  • 12
  • 29
  • This looks a neat solution but unfortunately the PUPM pricing model doesn't work that great for us, nor does the somewhat restricted feature set in terms of document volumes and sizes. It may be a good solution for others though. – Danny May 08 '13 at 06:37
0

Since you need to keep data on your own server, aceoffix can be one of your alternative. It is a plugin installed on your own server and save all data on your server too.

Belle
  • 1