How to convert DOCX to PDF programmatically without Word application installed from C#?

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:
  • using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.Runtime.Serialization;
    using System.Net;
    using System.IO;

    namespace WindowsFormsApplication1
        public partial class Form1 : Form
            public Form1()
            private void button1_Click(object sender, EventArgs e)
                string url = "
                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.

VN:F [1.9.20_1166]
Rating: 1.0/10 (3 votes cast)
VN:F [1.9.20_1166]
Rating: -4 (from 4 votes)
How to convert DOCX to PDF programmatically without Word application installed from C#?, 1.0 out of 10 based on 3 ratings

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!