How to Convert DOCX to PDF in Bulk on Windows
A PDF keeps your layout steady on the reader’s screen, so contracts, invoices and coursework often travel in that format. You have several practical routes on a Windows PC. Word’s own Save As command covers one document at a time. A script or a LibreOffice command covers a folder at no extra cost if the program is already on your PC. A desktop converter helps when there’s no word processor at all. Online converters also exist, but your document has to be uploaded to someone else’s server, so check your office rules first. The script and the LibreOffice command below were run on three sample DOCX files with Word build 16.0.20625 and LibreOffice 25.8.4.2. Each sample had a heading, a link, a picture and a header. All four reached the PDF in both programs, with the heading listed as a bookmark. If you want one combined file, read how to merge DOC files into one PDF instead.
4 Settings to Decide Before You Convert DOCX to PDF
A minute spent on these settings can save you a second round of exports.
| Setting | What You Decide | Source |
|---|---|---|
| Bookmarks | Word can build them from your headings or from Word bookmarks. | Save or convert to PDF in Office |
| Tracked changes | An option called Document showing markup puts revisions into the export. | Same Microsoft article |
| Archive or password | You can ask for PDF/A (ISO 19005-1) or encrypt the file with a password. | Same Microsoft article |
| Older files | The method used in the script below replaces a file of the same name without asking. | Document.SaveAs2 method |
How to Convert DOCX to PDF in Word
Use Word when you have a handful of documents and want to see each one before it leaves your desk.
- Open your document in Word.
- Choose File and then Save a Copy. A document you haven’t saved yet shows Save As instead.
- Select Browse and open the folder where the copy should go.
- Set the file type drop-down list to PDF.
- For a page range, markup or bookmarks, open More Options and then Options.
- Select Save.
Limitations: you repeat all of these steps for every document. A folder of forty reports means forty rounds, which is where a batch method pays off.
Batch Convert DOCX to PDF With PowerShell
With desktop Word installed, a few lines of PowerShell can do the saving for you. Copy your documents into C:\DocsToPdf, open Windows PowerShell and paste this block.
$folder = "C:\DocsToPdf"
$word = New-Object -ComObject Word.Application
foreach ($file in Get-ChildItem "$folder\*" -Include *.doc, *.docx) {
$doc = $word.Documents.Open($file.FullName, $false, $true)
$doc.SaveAs2([System.IO.Path]::ChangeExtension($file.FullName, ".pdf"), 17)
$doc.Close($false)
}
$word.Quit()
Each document opens as read-only and gets a PDF with the same name beside it. The number 17 is the PDF entry in Microsoft’s WdSaveFormat list. Two documents that share a name, say report.doc and report.docx, would write to one report.pdf, so rename one of them first.
Limitations: the script skips sub-folders. A hidden Word dialog, for example a password prompt, may leave it waiting. Add $word.Visible = $true on a line under the New-Object line if you want to watch what Word is doing.
Convert DOCX to PDF From the Command Line With LibreOffice
LibreOffice is free and can export documents without opening a window. Its help page on start parameters describes the --convert-to and --outdir switches. The command below assumes the usual install path on Windows.
$folder = "C:\DocsToPdf"
& "C:\Program Files\LibreOffice\program\soffice.com" --headless --convert-to pdf --outdir "$folder\pdf" (Get-ChildItem "$folder\*.docx").FullName
In the test run, LibreOffice created the pdf sub-folder itself and wrote three files into it. A warning about platform independent libraries appeared in the console, yet all three exports finished.
Limitations: the command reads DOCX files only, so change the pattern to *.doc for older documents. LibreOffice lays out pages with its own engine. Line breaks may differ from what you see in Word, especially if a font is missing.
How to Batch Convert DOCX to PDF Without Word
For a PC without Word, the 4n6 Document Converter reads DOC and DOCX documents and writes PDF copies on its own. Windows 7 through 11 and Windows Server are listed as supported on its product page. You can load single files or whole folders, and the page says the folder structure is kept.
- Download the converter, install it and open it.
- Go to Open >> DOCX Files and select Choose Files or Choose Folders.
- Check the loaded names in the list.
- Select Export and then PDF.
- On PDF Export Options, use Browse to fill the Location box. Keep the Delete old folders switch off if older output matters to you, then select Save.
Limitations: the demo edition exports only 2 items from each folder. A licence removes that cap.
Other source formats are covered on the File Converter page.
Try Two of Your Own Documents
Run the free demo and compare its output with your originals.
5 Checks for Your New PDF Files
- The number of PDF files matches the number of source documents.
- The last page of a long document ends where the original ends.
- Headers, footers and page numbers sit where you expect them.
- A web link opens when you select it, and the bookmarks panel lists your headings.
- No comment or deleted sentence is visible in a copy meant for outside readers.
For the reverse job on a whole folder, see how to turn multiple PDF files into Word documents.
3 Conversion Problems and Their Fixes
Comments or Tracked Changes Show Up in the PDF
The export usually follows the markup settings. Do this: accept or reject the changes, delete the comments and export again. If you later need an editable copy, see how to convert a PDF file back to DOCX.
The PDF Is Too Large to Email
Big photos are a common cause. Do this: compress the pictures in the source document, or shrink the finished file with one of the ways to reduce PDF file size.
You Needed One File and Got Many
Every batch method here writes a separate PDF per document. Do this: follow the guide to combine Word documents into a single PDF, where file order and headers are covered.
Frequently Asked Questions
How do I convert DOCX to PDF?
Word does it through Save As with PDF as the file type. For many documents, use a script, LibreOffice or the 4n6 Document Converter.
How can I turn multiple DOCX files into PDF at once?
Put them in one folder. Then run the PowerShell script with Word, run the LibreOffice command or load the folder into a batch converter.
Is Microsoft Word required?
No. LibreOffice and the converter both work without it. Only the PowerShell script that drives Word needs it.
Will my headings become bookmarks?
They can. In Word, open the export options and create bookmarks using headings. Headings need a real heading style, not only large bold text.
Where are the converted files saved?
The PowerShell script writes beside each source. The LibreOffice command uses the pdf sub-folder. The converter uses the path shown under Location.
Does the script replace older PDF files?
Yes. Microsoft’s documentation says SaveAs2 overwrites an existing file without a prompt, so move anything you want to keep.
Can I protect the PDF with a password?
Word offers an Encrypt with password option in its PDF export settings. Store that password somewhere safe before you send the file.
Can these steps join several documents into one PDF?
No. They produce one output per input. Joining needs a merge step before the export.
Which DOCX to PDF Method Fits You?
One or two documents: save them from Word and check each by eye.
A folder and Word installed: use the PowerShell script on copies.
A folder and no budget for Word: try LibreOffice and compare the page layout.
Mixed folders on a PC without either program: test a batch converter with its demo.


