Question:I have a web application and I need to convert DOCX files to PDF to generate some reports written in Word 2007. First I used automation and I faced a DCOM problem and finally I discovered that Microsoft doesn't support automation of Word on the server side. Now I'm searching for other free tools as opposed to Word and etc isn't free, iTextSharp doesn't convert DOCX to PDF.
If any one knows of a tool to make this conversation from C#, please let me know and hoping there is a solution on VeryPDF?
Answer:When you need to convert docx to PDF without MS Word application installed from C#, maybe you can have a free trial of this cloud based application VeryPDF Office Document to PDF Converter Cloud API, by it you can also convert files of DOC, XLS, XLSX, PPT, PPTX, RTF, Text documents to PDF files without any third party application installed. When you run the conversion by this cloud based application, all you need to do is that open browser and input URL then the conversion will be done. Please check more details of application on homepage, in the following part, I will show you how to use this cloud based application.
Step 1. Register an account on VeryPDF cloud based applications.
- There are more than 20 cloud based applications, if you have API code of one then you use all of them free. Please go to registration page and get and account. When you pay for it the API code will be sent to your email box at once.
- All of those cloud based application sell at less than 20$ per month.
Step 2. Convert Docx to PDF from C# without MS Word application installed.
- When converting docx to PDF, please refer to the following URL:
By above URL, we can convert docx to PDF without MS Office Word application installed.
- When you call it from C#, please refer to the following code templates:
public partial class Form1 : Form
private void button1_Click(object sender, EventArgs e)
string url = "http://online.verypdf.com/api/
WebRequest request = HttpWebRequest.Create(url);
WebResponse response = request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string urlText = reader.ReadToEnd();
During the using, if you have any question, please contact us as soon as possible.