Okdo Software · Command-line

All to PDF Converter Command Line

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

Okdo All to PDF Converter Command Line converts Word, Excel, PowerPoint, images, RTF and TXT, HTML and web pages into PDF directly on your Windows PC. 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
All 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

  • Creates standard PDF from many files, such as Word, Excel, PowerPoint, RTF, HTML, TXT, URL webpage, and images like JPG, JPEG, BMP, PNG, GIF, TIFF, EMF, WMF, JP2, J2K, PCX etc.
  • Supports MS-Office 2007 and later files.
  • Without installing any other 3rd party applications.
  • Preserve hyperlinks from HTML webpage to PDF.
  • Insert the Meta Data information, such as Author, Title, Subject and Keywords.
  • Set password to protect created PDF.
  • Wildcard characters like *.doc or aa*.doc are supported.
  • Option to merge images into one single PDF.
  • Option to fit image to PDF sizes.
  • Option to set page property in conversion from HTML, URL webpage to PDF.
  • Option to convert Excel to multipage PDF.
  • 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.
  • Batch conversion and fast processing help you save the time.
  • Preview the output folder after conversion.

Supported formats

➡️ Input

MS Office Document
Word (*.doc, *.docx, *.docm)
Excel (*.xls, *.xlsx, *.xlsm)
PowerPoint (*.ppt, *.pptx, *.pptm)
Image File *.jpg, *.jpeg, *.bmp, *.png, *.tif, *.gif, *.emf, *.wmf, *.jp2, *.j2k, *.pcx
HTM,
HTML *.htm, *.html, website URLs
RTF,
TXT *.rtf, *.txt

⬅️ Output

Adobe
PDF *.pdf

Command-line usage

Okdo All 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)
Image to PDF Parameters:
-merge-image-to-pdf Merge multiple images into a single PDF
-adjust-image-to-pdf Adjusting image size to PDF
-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"
converter.exe -file=c:\in1.jpg -file=c:\in2.jpg -dest=c:\out.pdf -mergeimagetopdf -ownerpwd=owner -fill-in -author="okdo soft"
converter.exe -file=c:\in.gif -dest=c:\out.pdf -merge-image-to-pdf -openpwd=user -author="okdo soft"
converter.exe -file=c:\in.tif -dest=c:\out.pdf -merge-image-to-pdf -openpwd=user -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

4.8
★★★★★
101 verified reviews
5★84
4★17
3★0
2★0
1★0
AK
Aisha K.
SysAdmin
★★★★★Jan 2026

Free online tools choke on large files and upload everything to the cloud. All to PDF just works locally. Handles encrypted and password-protected documents.

✓ Verified purchase
NM
Noah M.
Backend Developer
★★★★☆Nov 2025

Dropped in a folder of MS Office Document Word (*.doc → Adobe PDF *.pdf files and it was done — refreshingly simple. Preserves the original layout, fonts and images.

✓ Verified purchase
ML
Maria L.
IT Administrator
★★★★★Jun 2026

The command-line mode in All to PDF lets me schedule overnight jobs across a whole folder. Clean interface with practically no learning curve.

✓ Verified purchase
NC
Noah C.
Backend Developer
★★★★★Jun 2025

Our locked-down machines can't install Acrobat, so a standalone tool like All to PDF was exactly what we needed. No Adobe Acrobat dependency to install or maintain.

✓ Verified purchase
SR
Sara R.
DevOps Engineer
★★★★★Apr 2026

Layout and formatting came through perfectly — no broken tables or images. Handles encrypted and password-protected documents.

✓ Verified purchase
JW
James W.
Backend Developer
★★★★★Mar 2025

It handled our password-protected PDFs without any drama. Batch mode processes whole folders in one click.

✓ Verified purchase

More converters you may need