Convert URL-PDF from Internet to a Word file using C# and .NET

This Console Application shows how to convert a remote PDF (url-link) into a DOCX file.

Complete code

using System;
using System.IO;

namespace Sample
    class Sample
        static void Main(string[] args)
            string remotePdfUrl = @"";
            string pathToWord = @"Result.docx";
                                  // Get your free 30-day key here:   
            //Convert URL-PDF from Internet to a Word file
            SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
            Uri uri = new Uri(remotePdfUrl);


            if (f.PageCount > 0)
                int result = f.ToWord(pathToWord);

                //Show the resulting Word document
                if (result == 0)
                    System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(pathToWord) { UseShellExecute = true });


Imports System.IO
Imports System.Drawing.Imaging
Imports System.Collections.Generic
Imports SautinSoft

Module Sample

    Sub Main()
        Dim remotePdfUrl As String = ""
        Dim pathToWord As String = "Result.docx"
                                ' Get your free 30-day key here: 
        'Convert URL-PDF from Internet to a Word file
        Dim f As New SautinSoft.PdfFocus()

        Dim uri As New Uri(remotePdfUrl)


        If f.PageCount > 0 Then
            Dim result As Integer = f.ToWord(pathToWord)

            'Show the resulting Word document
            If result = 0 Then
                System.Diagnostics.Process.Start(New System.Diagnostics.ProcessStartInfo(pathToWord) With {.UseShellExecute = True})
            End If
        End If
    End Sub
End Module


If you need a new code example or have a question: email us at or ask at Online Chat (right-bottom corner of this page) or use the Form below:

Questions and suggestions from you are always welcome!

We are developing .Net components since 2002. We know PDF, DOCX, RTF, HTML, XLSX and Images formats. If you need any assistance with creating, modifying or converting documents in various formats, we can help you. We will write any code example for you absolutely free.