Okdo Software · Command-line

Office Document to PDF Converter Command Line

Turn Word, Excel, PowerPoint, RTF and TXT, HTML and web pages to PDF on Windows.

With Okdo Office Document to PDF Converter Command Line you can turn Word, Excel, PowerPoint, RTF and TXT, HTML and web pages into PDF without leaving your desktop. Process whole folders in one batch. Everything runs offline, so your files never leave your computer, and you don't need Adobe Acrobat or Reader to get clean, layout-accurate results. In addition, you can also pull whole web pages and URLs straight into documents; it can password-protect or unlock PDFs.

Standalone — no Adobe Acrobat Batch conversion Files never leave your PC
Office Document to PDF Converter Command Line screenshot

Key features

Convert entire folders in a single batch with one click
Preserve the original layout, fonts, images, and tables
Fully offline — your files never leave your PC
Standalone — no Adobe Acrobat or Reader required
Convert web pages and URLs directly into documents
Encrypt or decrypt password-protected PDF files
Command-line mode for automation, scripts, and scheduled tasks

Advanced capabilities

  • Convert multiple documents from MS Word, Excel, PowerPoint, RTF, TXT, HTML and URL webpage to PDF one time.
  • Supports MS-Office 2007 and later files like *.docx, *.docx, *.xlsx, *.xlsm, *.pptx, *.pptm.
  • Supports MS-DOS command line operations.
  • No third-party PDF software required.
  • Accurately retain text, graphics, fonts and layouts of original document.
  • Allows to set PDF properties like Title, Author, Subject and Keywords.
  • Set open and owner password to protect created PDF.
  • Set PDF document security like permit to print,permit to copy,permit to fill out form,content modification etc.
  • Preserve hyperlinks from HTML webpage to PDF.
  • Option to set page property in conversion from HTML, URL webpage to PDF.
  • Option to convert Excel to multipage PDF.
  • Wildcard characters like *.doc or aa*.doc are supported.
  • Load source file paths from a text file.
  • Specify a source folder.
  • Load files from subfolders.
  • Save output files to the same folder as the source.
  • Rename the output file if it already exists, or overwrite it.

Supported formats

➡️ Input

MS Office Document
Word (*.doc, *.docx, *.docm)
Excel (*.xls, *.xlsx, *.xlsm)
PowerPoint (*.ppt, *.pptx, *.pptm)
HTM,
HTML *.htm, *.html, website URLs
RTF,
TXT *.rtf, *.txt

⬅️ Output

Adobe
PDF *.pdf

Command-line usage

Okdo Office Document to PDF Converter Command Line runs from a DOS command prompt. Change to the installation folder, then invoke the executable using the syntax below.

converter.exe [options] <source file> <target file>

Options

<source file> There are 3 ways to specify the source files to be converted
1. -file=<source file>.
Supports wildcard character like * and ?
* Matches 0 or more characters in document name
? Matches any single character in document name
Source file must contain full type extension
MS Word(*.doc, *.docx, *.docm, )
MS Excel(*.xls, *.xlsx, *.xlsm, )
MS PowerPoint(*.ppt, *.pptx, *.pptm, )
RTF(*.rtf)
Text Document(*.txt)
HTML Document(*.htm)
Image(*.jpg, *.jpeg, *.bmp, *.gif, *.tif, *.wmf, *.emf, *.png, *.jp2, *.j2k, *.pcx, )
-file=c:\1.doc
-file=c:\*.doc
-file=c:\document*.doc
-file=c:\document???.doc
-url=https://www.okdosoft.com
2. -list=<file list>.
<File list> is a text file which contains file
names to be converted. One file name per line. eg:
-list=c:\list.txt
3. -sourcefolder=<folder name>.
Convert all files in the specified folder. eg:
-sourcefolder=c:\tempfolder
If you need to load files from sub-folders,
please use the following argument:
-recurse-subfolders
<target file> There are 3 ways to specify target output format
1. -dest=<target file path + file name + file extension>
eg: -dest=c:\out.pdf
2. -dest=<target file path + file extension>
For batch convert an entire folder or convert a list
eg: -dest=c:\*.pdf
3. -format=<target file format>
-targetfolder=<output folder>
For batch convert an entire folder or convert a list
eg: -format=pdf -targetfolder=c:\output
Global Options:
-create-subfolder Create subfolder within target folder
The subfolder will be named using the file name
-same-as-source-folder Save output files in the same folder as source
-same-as-source-name Specify output file name as source file
-overwrite Overwrite existing output file
PDF Information:
-subject=<string> Set subject of PDF
-title=<string> Set title of PDF
-author=<string> Set author of PDF
-keywords=<string> Set keywords of PDF
PDF Permission:
-openpwd=<string> Set open password of PDF
-ownerpwd=<string> Set owner password of PDF
-printing Enable top quality printing
-degraded-printing Enable lower quality printing
-modify-contents Enable modify contents also allow documentassembly
-document-assembly Enable assemble contents
-modify-annotations Enable modify annotations also allow fillin
-fill-in Enable fill in form
-content-copying Enable copy contents, also allow screenreader
-screen-reader Enable read contents with screenreaders
MS Excel HTML Webpage to PDF Parameters:
-merge-worksheet Merge all worksheets from each workbook into one PDF
-pdf-page-width=<value> Set PDF page width. Default unit millimeter
-pdf-page-height=<value> Set PDF page width. Default unit millimeter
-landscape Set PDF orientation to Landscape. default Portrait
-grayscale PDF will be generated in grayscale
-dis-external-links Do not make links to remote web pages
-dis-forms Do not turn HTML form fields into pdf form fields
-dis-internal-links Do not make local links
-dis-javascript Do not allow web pages to run javascript
-no-images Do not load or print images
-print-mediatype Use print media-type instead of screen
-zoom=<value> Use this zoom factor (default 1)
-open Open output folder after conversion
-? Print usage information
-help Print usage information
-more Open the product detail page.
Example
converter.exe -file=c:\in.doc -dest=c:\out.pdf
converter.exe -file=c:\*.doc -format=pdf -targetfolder=c:\output
converter.exe -file=c:\in*.doc -format=pdf -targetfolder=c:\output
converter.exe -file=c:\in??.doc -format=pdf -targetfolder=c:\output
converter.exe -list=c:\filelist.txt -format=pdf -targetfolder=c:\output
converter.exe -sourcefolder=c:\temp -dest=c:\output\*.pdf
converter.exe -sourcefolder=c:\temp -format=pdf -targetfolder=c:\output
converter.exe -file=c:\in.doc -dest=c:\out.pdf -overwrite
converter.exe -file=c:\in.doc -dest=c:\out.pdf -create-subfolder
converter.exe -file=c:\in.doc -dest=c:\out.pdf -ownerpwd=owner -openpwd=user -fill-in -author="okdo soft"
converter.exe -file=c:\in.xls -dest=c:\out.pdf -ownerpwd=owner -merge-worksheet -fillin -author="okdo soft"
converter.exe -file=c:\in.ppt -dest=c:\out.pdf -ownerpwd=owner -modify-contents -title="okdo soft"
converter.exe -file=c:\in.txt -dest=c:\out.pdf -ownerpwd=owner openpwd=user -printing -author="okdo soft"
converter.exe -file=c:\in.htm -dest=c:\out.pdf -no-images -ownerpwd=owner -printing -author="okdo soft"
converter.exe -url=http://www.msn.com -dest=c:\out.pdf -no-images -ownerpwd=owner -printing -title=okdosoft -author="okdo soft"

Why convert with Okdo

Batch convert hundreds of files at onceNo Adobe Acrobat requiredOffline — files never uploaded to the cloudOne-time license, free updates30-day money-back guarantee

What customers say

5.0
★★★★★
184 verified reviews
5★184
4★0
3★0
2★0
1★0
KW
Kevin W.
DevOps Engineer
★★★★★Aug 2025

Switched our team to Office Document to PDF and the batch conversion alone saves us hours every week. Batch mode processes whole folders in one click.

✓ Verified purchase
DC
Daniel C.
Backend Developer
★★★★★Jan 2025

Converted a 300-page document in seconds. Runs entirely offline, no internet connection required.

✓ Verified purchase
SP
Sara P.
Backend Developer
★★★★★Oct 2025

As a Backend Developer, I needed something I could trust with sensitive documents. Office Document to PDF delivered. Files never leave the PC — ideal for compliance.

✓ Verified purchase
NC
Nina C.
DevOps Engineer
★★★★★Aug 2025

It handled our password-protected PDFs without any drama. Free updates are included with the license.

✓ Verified purchase
YC
Yuki C.
Backend Developer
★★★★★Feb 2025

Compared three converters; Office Document to PDF was the only one that preserved our layout on MS Office Document Word (*.doc → Adobe PDF *.pdf. No Adobe Acrobat dependency to install or maintain.

✓ Verified purchase
LC
Lucas C.
Backend Developer
★★★★★Jul 2025

We bought the one-time license and never looked back — no subscription, free updates. Handles encrypted and password-protected documents.

✓ Verified purchase

More converters you may need