How can we convert a doc file into an html and a pdf file using c# in a web application?
I am making a web application and i want to convert a doc file into html and pdf as soon as the user clicks on the desired button
How can we convert a doc file into an html and a pdf file using c# in a web application?
I am making a web application and i want to convert a doc file into html and pdf as soon as the user clicks on the desired button
If you want to convert a word doc to pure html, you will need to run a function that strips all of the garbage characters from your word document.. you would be recreating your own basic CMS.
If you want to convert a word doc to PDF, you will need to run Microsoft Office on a Microsoft server and it gets quite complex and expensive to buy licences for using Office on the server.
If you want to simply upload a word doc to a server, you can display it online using Google Doc Viewer without any conversion. Here is an short article on how to embed a document on a website. All that is required is a short amount of code:
<iframe src="http://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>