Logo
arrow1 File Converters
arrow1 TIFF and PDF apps
arrow1 Forensic
arrow1 Freeware

Convert DOCX to PDF Via Command Line

 

Total Doc Converter X is a server app that once installed, allows multiple network users to convert DocX to PDF from the command line. Because Doc Converter X is accessed via a web server any number of end users can be granted permission to use it. Alternatively, our command line converter can be employed as a stand-alone application as well. Bottom line; when you need to perform quiet conversions free of interruption, this is the perfect tool for the job.

Offering full ActiveX support, the Total Doc Converter X can be integrated into almost any Windows app. Use our converter as a reliable library to deal with all your conversion needs. Your users won't even need to know how to convert DocX to PDF from Windows command line. Simply call COM object through .NET!

After installing the Total Doc Converter X you'll be greeted with a master list of commands available for use when setting up conversion projects. Server administrators and network users alike are able to benefit from this straight-forward, access-oriented design. Once you've arrived at the optimal project settings, you can save them for future use with our convenient .bat save feature.

Our Doc to PDF library is not limited to PDF only. In fact it converts DocX to a variety of other formats too (XLS, HTML, JPEG, TIFF, RTF, TXT).

Additional options let you:

  • Include page numbers.
  • Design custom headers & footers.
  • Add a unique watermark.
  • Set document encryption.
  • Attach a digital signature.
  • Merge multiple files into a single target document.
  • Maintain your documents' original properties.
  • Utilize batch conversion technology.

After many years spent developing conversion apps, we've learned what options users need the most. True to our goal of unmatched flexibility, we've added these options to provide users with a single, robust utility that includes the functionality of many tools.

Feel free to try before you buy. Download our free evaluation version and see what you think. When the time comes to upgrade to the full-version, we offer a variety of licenses to meet your specific needs. For enterprise licensing, contact us via this form.

Total Doc ConverterX runs fine on Windows Vista/7/8/10/11.


 

Download Now!

Updated Tue, 16 Apr 2024

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
Get all CoolUtils products
for $99 only
read more

  (you save up to $500)


Total Doc Converter X Preview1

Latest News

Newsletter Subscribe

No worries, we don't spam.


© 2024. All rights reserved. CoolUtils File Converters

Cards