Logo
Home Products Support Contact About Us
arrow1 File Converters
arrow1 TIFF and PDF apps
arrow1 Forensic
arrow1 Freeware

Convert DOC to PDF via Command Line — Server Batch Converter

You have hundreds of Word documents on a server that need to become PDFs — for archiving, for a web portal, or for a workflow that distributes read-only copies. Opening each file in Word and exporting to PDF is not an option at scale. Total Doc Converter X converts DOC and DOCX files to PDF from the command line, in batch, with no GUI and no Microsoft Office installation. Install it on a Windows server, call it from a script, and let it run unattended.

What Total Doc Converter X Does

  • Batch conversion — pass a wildcard (*.doc) and the converter processes every matching file in one run
  • PDF security — set user and owner passwords, restrict printing, prevent text copying and extraction
  • Watermarks — stamp text or image watermarks on every page during conversion
  • Headers and footers — add page numbers, dates, or custom text to the top or bottom of each page
  • No GUI — runs silently from the command line with no pop-up windows or confirmation dialogs
  • ActiveX / COM — call the converter from .NET, VBScript, or any COM-compatible environment to embed conversion into your own application
  • .bat scripting — save commands in batch files and schedule them with Windows Task Scheduler for fully automated conversion

DOC to PDF command line conversion

Download Free Trial
(includes 30-day trial — no email required)

Windows 7/8/10/11 • Server 2008/2012/2016/2019/2022

DOC vs PDF: Why Convert?

DOC/DOCX is an editable Word format. It requires Microsoft Word or a compatible application to render, and the result can vary between machines depending on installed fonts, Word versions, and printer drivers. PDF is a fixed-layout format that looks identical on every device. It cannot be accidentally edited, supports password protection, and opens natively in every browser, mobile OS, and desktop operating system.

DOC / DOCXPDF
EditabilityFully editableRead-only (by design)
RenderingVaries by machine and Word versionIdentical on every device
Viewer requiredMicrosoft Word or compatible appAny browser or PDF viewer (free)
SecurityLimited (basic password)Passwords, encryption, permissions
Digital signaturesSupported (requires Word)Supported (universally)
Use caseDrafting, collaborationDistribution, archiving, compliance

How to Convert DOC to PDF from the Command Line

Step 1. Install Total Doc Converter X

Download the installer from the link above and run it on your Windows server or workstation. The setup takes under a minute. No Microsoft Office installation is required — the converter uses its own rendering engine.

Step 2. Open the Command Prompt

Open cmd.exe or PowerShell. The converter executable is DocConverter.exe, located in the installation folder (typically C:\Program Files\CoolUtils\TotalDocConverterX\). Add it to your system PATH or use the full path in your commands.

Step 3. Run the Basic Conversion

The simplest command converts all DOC files in a folder to PDF:

DocConverter.exe C:\Docs\*.doc C:\Output\ -cPDF

This processes every .doc file in C:\Docs\ and saves the resulting PDFs in C:\Output\. Each DOC file produces one PDF with the same name.

Step 4. Add Security and Formatting Options

Control the PDF output with additional flags:

DocConverter.exe C:\Docs\*.docx C:\Output\ -cPDF -OwnerPassword admin123 -NoPrint -NoCopy
  • -OwnerPassword admin123 — set a PDF owner password that controls permissions
  • -UserPassword open456 — set a password required to open the PDF
  • -NoPrint — disable printing in the output PDF
  • -NoCopy — prevent text selection and copying
  • -Watermark "CONFIDENTIAL" — stamp text across every page
  • -PageNum — add page numbers to the footer

Step 5. Automate with a .bat File

Save your command in a .bat file and schedule it with Windows Task Scheduler:

@echo off
"C:\Program Files\CoolUtils\TotalDocConverterX\DocConverter.exe" C:\Incoming\*.doc C:\Archive\PDF\ -cPDF -OwnerPassword secret -NoPrint -log C:\Logs\doc2pdf.log

This runs the conversion every night (or at whatever interval you set) and writes a log file so you can verify the results.

ActiveX / COM Integration

Total Doc Converter X includes a full ActiveX interface. You can call the converter from any COM-compatible environment — VBScript, VB.NET, C#, ASP, or PHP on Windows. This lets you embed DOC-to-PDF conversion into your own web application, intranet portal, or document workflow without shelling out to a command-line process.

Example (VBScript):

Set obj = CreateObject("DocConverter.Application")
obj.Convert "C:\Docs\report.doc", "C:\Output\report.pdf", "PDF"

In ASP.NET, the same call works through COM Interop, allowing your web application to accept uploaded Word files and return PDFs to the user in real time.

Online Converters vs Total Doc Converter X

FeatureOnline ConvertersTotal Doc Converter X
Batch processingOne file at a timeUnlimited files per batch
File privacyFiles uploaded to third-party serverFiles never leave your machine
File size limitTypically 10–50 MBNo limit
PDF securityRarely availablePasswords, encryption, permissions
WatermarksNot available or brandedCustom text and image watermarks
AutomationManual onlyCommand line, .bat, Task Scheduler, ActiveX
Server deploymentNot possibleDesigned for servers, no GUI needed
Requires internetYesNo

When You Need DOC to PDF Command-Line Conversion

  • Document archiving. Organizations that store final documents in PDF need an automated pipeline. A scheduled command converts incoming Word files to PDF without manual intervention.
  • Web portal file delivery. A web application accepts uploaded DOC files and returns PDFs. Total Doc Converter X handles the conversion on the server side through its ActiveX interface or command line.
  • Compliance and legal. Regulations often require non-editable document formats. Converting Word files to password-protected PDFs ensures the content cannot be altered after finalization.
  • Print-ready distribution. Marketing, HR, and finance departments generate reports in Word. Converting to PDF standardizes the output so every recipient sees the same layout regardless of their Word version or operating system.
  • Eliminating Office on servers. Running Microsoft Office on a server is unsupported by Microsoft and creates licensing complexity. Total Doc Converter X replaces the need for Word on the server entirely.

Why Total Doc Converter X

No Microsoft Office Required

The converter uses its own rendering engine to read DOC and DOCX files. You do not need Word, LibreOffice, or any other application installed on the server. This simplifies deployment, avoids Office licensing costs, and eliminates the stability issues of running Office in a server environment.

True Server Application

Total Doc Converter X is designed for unattended use. No GUI windows, no dialog boxes, no confirmation prompts. It runs silently from the command line or as part of a service — exactly what a production server needs.

Full PDF Control

Set passwords, restrict permissions, add watermarks, insert page numbers, customize headers and footers — all from the command line. Every option that you would set manually in Word's "Save as PDF" dialog is available as a command-line flag.

Not Just PDF

The same command-line tool converts DOC and DOCX to TIFF, JPEG, PNG, HTML, XLS, RTF, TXT, and more. One installation covers all your document conversion needs. Change -cPDF to -cTIFF and you get TIFF output with the same batch and automation features.

Download Free Trial
(30 days, no email or credit card)

Windows 7/8/10/11 • Server 2008/2012/2016/2019/2022


quote

Total Doc Converter X Customer Reviews 2026

Rate It
Rated 4.7/5 based on customer reviews
5 Star

"We process 3,000 Word documents a week through our intranet portal. Users upload DOC files and the system returns PDFs. Total Doc Converter X handles the conversion on the server side via ActiveX. No Office installation, no stability issues, no user interaction. It has been running for two years without a single failure."

5 Star James Whitfield Senior Systems Administrator

"Our compliance workflow requires all finalized contracts to be stored as password-protected PDFs. We used to do this manually in Word. Now a nightly .bat script converts everything in the Finalized folder to PDF with an owner password and print restrictions. The entire batch runs in minutes."

5 Star Katrin Bauer Compliance Officer

"Good server-side converter. I integrated it into our CI/CD pipeline to generate PDF documentation from Word templates after each release. The command-line interface is straightforward and the log output is clean. Only wish it had a Linux build, but for our Windows Server environment it does the job reliably."

4 Star Rafael Costa DevOps Engineer

FAQ ▼

The basic command is: DocConverter.exe C:\Docs\*.doc C:\Output\ -cPDF. This converts every DOC file in the source folder to PDF. Add flags like -OwnerPassword, -NoPrint, or -Watermark to control the output.
No. Total Doc Converter X uses its own rendering engine to read DOC and DOCX files. No Microsoft Office, LibreOffice, or any other application is required.
Yes. Use -OwnerPassword to set a password that controls permissions (printing, copying), and -UserPassword to set a password required to open the PDF.
Yes. Total Doc Converter X supports both the legacy DOC format (Word 97-2003) and the modern DOCX format (Word 2007+). Use *.docx in the source path to convert DOCX files.
Yes. Use the -Watermark "CONFIDENTIAL" flag to stamp text across every page. You can also add image watermarks by specifying a path to an image file.
Yes. Total Doc Converter X registers as a COM/ActiveX object. You can call it from VBScript, VB.NET, C#, ASP, or any COM-compatible environment. This lets you embed conversion into web applications and automated workflows.
Yes. Save the conversion command in a .bat file and add it to Windows Task Scheduler. The converter runs unattended at the scheduled time and writes a log file for verification.

 

Start working now!

Download free trial and convert your files in minutes.
No credit card or email required.

⬇ Download Free Trial Windows 7/8/10/11 • 115 MB

Examples of Total Doc ConverterX

Convert Doc files With TotalDocConverterX and .NET

string src="C:\\test\\Source.Doc";
string dest="C:\\test\\Dest.PDF";

DocConverterX Cnv = new DocConverterX();
Cnv.Convert(src, dest, "-c PDF -log c:\\test\\Doc.log");

MessageBox.Show("Convert complete!");

Download .NET Doc Covnerter example

Convert Doc Files On Web Servers With Total Doc ConverterX

dim C
Set C=CreateObject("DocConverter.DocConverterX")
C.Convert "c:\source.DOC", "c:\dest.TIF", "-cTIF -log c:\doc.log"
Response.Write C.ErrorMessage
set C = nothing
Example2 ASP: directly stream the resulting PDF
dim C
Set C=CreateObject("DocConverter.DocConverterX")
Response.Clear
Response.AddHeader "Content-Type", "binary/octet-stream"
Rresponse.AddHeader "Content-Disposition", "attachment; filename=test.pdf"
Response.BinaryWrite c.ConvertToStream("C:\www\ASP\Source.doc", "C:\www\ASP", "-cpdf  -log c:\html.log")
set C = nothing
If you use ActiveX on a web-server, please, remember to register it in your web-server account. If you don't have MS Office or MS Word installed on your computer, please download this additional free office converter pack to convert doc files.

Some more samples in C# specifically for ASP.net. If you need examples on other languages please contact us. We will create any example specially for you.

Convert Doc Files On Web Servers With Total Doc ConverterX

$src="C:\test.doc";
$dest="C:\test.htm";
if (file_exists($dest)) unlink($dest);
$c= new COM("DocConverter.DocConverterX");
$c->convert($src,$dest, "-c htm  -log c:\doc.log");
if (file_exists($dest)) echo "OK"; else echo "fail:".$c->ErrorMessage;

Convert Doc Files With Total Doc ConverterX and Ruby

require 'win32ole'
c = WIN32OLE.new('DocConverter.DocConverterX')

src="C:\\test\\test.docx";
dest="C:\\test\\test.pdf";

c.convert(src,dest, "-c PDF -log c:\\test\\Doc.log");

if not File.exist?(dest)
  puts c.ErrorMessage
end

Convert Doc files With Total Doc ConverterX and Python

import win32com.client
import os.path

c = win32com.client.Dispatch("DocConverter.DocConverterX")

src="C:\\test\\test.docx";
dest="C:\\test\\test.pdf";

c.convert(src, dest, "-c PDF -log c:\\test\\Doc.log");

if not os.path.exists(file_path):
  print(c.ErrorMessage)

Convert Doc files With Pascal and Total Doc ConverterX

uses Dialogs, Vcl.OleAuto;

var
  c: OleVariant;
begin
  c:=CreateOleObject('DocConverter.DocConverterX');
  C.Convert('c:\test\source.docx', 'c:\test\dest.pdf', '-cPDF -log c:\test\Doc.log');
  IF c.ErrorMessage<>'' Then
    ShowMessage(c.ErrorMessage);
end;

Convert Doc Files On Web Servers With Total Doc ConverterX

var c = new ActiveXObject("DocConverter.DocConverterX");
c.Convert("C:\\test\\source.docx", "C:\\test\\dest.pdf", "-c PDF");
if (c.ErrorMessage!="")
  alert(c.ErrorMessage)

Convert Doc files With Total Doc ConverterX and Perl

use Win32::OLE;

my $src="C:\\test\\test.docx";
my $dest="C:\\test\\test.pdf";

my $c = CreateObject Win32::OLE 'DocConverter.DocConverterX';
$c->convert($src,$dest, "-c pdf  -log c:\\test\\Doc.log");
print $c->ErrorMessage if -e $dest;

Support
Total Doc Converter X Preview1

Latest News

Newsletter Subscribe

No worries, we don't spam.


© 2026. All rights reserved. CoolUtils File Converters

Cards