Convert PDF to Word (*.docx) in C# using PDF Focus .Net library
Key Features
PDF to Word, RTF
>>PDF to Word, DOCX
PDF to Images: JPEG, TIFF
PDF to Excel
PDF to Text
Download trial
Code examples
Video Tutorials
API Reference
Version History

How to convert PDF to Word (DOCX) in C#?

Convert PDF to Word (*.docx) in C# using PDF Focus .Net library


     Another interesting feature of "PDF Focus .Net" is the API to convert PDF to DOCX. The beauty of this approach is in that you only need to add a reference to the SautinSoft.PdfFocus.dll and type four (4) lines of code. For example, to convert a PDF to DOCX in C#:
           SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
            f.OpenPdf(@"d:\Invoice for a Pastry Shop.pdf");
            if (f.PageCount > 0)
                f.ToWord(@"Invoice for a Pastry Shop.docx");

"PDF Focus .Net" has own PDF reader and DOCX renderer, according to PDF 1.7 and Office Open XML (Ecma 4th edition) specifications. Thus your .NET application will be able to convert any PDF documents to DOCX on fly without any dependencies from MS Office or Adobe Acrobat.
All features are supported and an output DOCX document will contain paragraphs, columns, tables, hyperlinks, images, page breaks, and so forth.

Another point of interest is that PDF Focus .Net can understand and recreate real tables with rows and cells. Maybe it sounds obvious, but PDF documents don't have real tables. If you see a table inside a PDF, it is in fact a set of lines. To further accentuate this point, download PDF Focus .Net, 104.0 Mb and evaluate it now!

Nuget  Online Demo   Download, (Mar 27-th, 2020)

Have a Question?

You have a question, need a support or a code example: ask our support team at We will help you quickly and with pleasure.

What PDF Focus .Net gives me:

  1. Save time and cost of the product development. The writing of own PDF converter in C# requires a lot of days of hard work and takes approx 100 000 C# code lines. PDF Focus .Net will save a lot of my time and I'll need only to add the reference to "SautinSoft.PdfFocus.dll" and write 3-4 C# code lines.

  2. The one product provides me by set of API to convert PDF at various formats at once: Word, DOCX, RTF, Excel, HTML, Text, Multipage TIFF, Jpeg, PNG.

  3. Because of this is absolutely standalone PDF library, my clients don't need to have Adobe Acrobat, MS Word, Excel or other software.

  4. My software will have the one of the fastest API to convert PDFs inside, you may check this.

  5. I can select the any of product editions: Total, Office, HTML and Picasso. This saves my money. Let's us say, that I'm looking for only the API to convert PDF to HTML and don't need other features. Given this point, I can purchase the "HTML" edition of PDF Focus .Net. It's much cheaper than competitor's price.

  6. The one time price. I pay a one time and can use «PDF Focus .Net» for a whole life without any additional fees. My license will never expires.

  7. As bonus, I get unlimited technical support during a whole life for free and independently of the date of my purchasing.

Some examples to convert PDF to DOCX in C# and VB.Net

Want to adjust a result of PDF to DOCX conversion? See our tips ...

1. Convert PDF file to DOCX file in C#:

           SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();

            if (f.PageCount > 0)
                int result = f.ToWord(@"d:\History.docx");
                // Open Word document
                if (result==0)
2. Convert PDF to DOCX in memory using C#:
           string pdfFile = @"c:\book.pdf";
            MemoryStream docxStream = new MemoryStream();
            // Convert PDF to word in memory
            SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();

            // Assume that we already have a PDF document as stream.
            using (FileStream pdfStream = new FileStream(pdfFile, FileMode.Open, FileAccess.Read))

                if (f.PageCount > 0)
                    int res = f.ToWord(docxStream);

                    // Save docxStream to a file for demonstration purposes.
                    if (res == 0)
                        string docxFile = Path.ChangeExtension(pdfFile, ".docx");
                        File.WriteAllBytes(docxFile, docxStream.ToArray());
3. Convert 2nd-3rd pages of PDF document Word in VB.Net:
        Dim f As New SautinSoft.PdfFocus()

        If f.PageCount > 2 Then
            'Convert only pages 2 - 3 to Word
            Dim result As Integer = f.ToWord("f:\foredit.docx", 2, 3)

            'Show Word document
            If result = 0 Then
            End If
        End If

4. Export PDF to Word in ASP.Net/C#:

        SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
        byte [] docx = null;

        if (f.PageCount > 0)
            //Let's whole PDF document to DOCX
            docx = f.ToWord();

        //show result
        if (docx != "")
            Response.Buffer = true;
            Response.ContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
            Response.AddHeader("Content-Disposition:", "attachment; filename=Result.docx");
5. Convert PDF file to Word file in VB.Net:
        Dim f As New SautinSoft.PdfFocus()
        f.OpenPdf("c:\Simple Text.pdf")

        If f.PageCount > 0 Then
            Dim result As Integer = f.ToWord("c:\Result.docx")

            'Show Word document
            If result = 0 Then
            End If
        End If
If anyone needs a code sample in C#, VB.Net, ASP.Net etc "How to convert PDF to Word, DOCX", email us at or ask at Online Chat (right-bottom corner of this page). We'll help you certainly!

Requirements and Technical Information

     Requires only .NET Framework 4.0 or higher. Our product is compatible with all .NET languages and supports all Operating Systems where .NET Framework and .NET Core can be used. Note that PDF Focus .Net is entirely written in managed C#, which makes it absolutely standalone and an independent library.

.NET Framework 4.0 and higher and .NET Core 2.0 and higher

.NET Framework 4.0, 4.5, 4.6.1 and higher. The old version for old .NET 2.0 can be found here.

.NET Standard 2.0

.NET Core 2.0 and higher.

Multi-platform component, runs on:

Our component has proven itself on cloud platforms and services:

  • Microsoft Azure
  • Amazon Web Services (AWS)
  • Google Cloud Platform
  • SharePoint
  • Docker
  • etc.

Reasonable prices

     The library offers developers high quality conversion at reasonable prices. The main point of interest is that PDF Focus .Net is less expensive than all of its more or less popular counterparts. For example, a single license for PDF Focus .Net - Office Edition cost $499 with no additional fees or royalties!


To see this functionality firsthand, download the freshest «PDF Focus .Net» with code examples, 104.0 Mb.


  • Sweden, Stockholm
  • Mortviksvagen 68B 142 43 SKOGAS
  • Tel: +46 812111486
  • Email:
    Copyright © 2002 - 2020 SautinSoft (started from All rights reserved.