Jump to content

Recommended Posts

Posted

Powershell?

$documents_path = 'c:\doc2pdf'

 

$word_app = New-Object -ComObject Word.Application

 

# This filter will find .doc as well as .docx documents

Get-ChildItem -Path $documents_path -Filter *.doc? | ForEach-Object {

 

$document = $word_app.Documents.Open($_.FullName)

 

$pdf_filename = "$($_.DirectoryName)\$($_.BaseName).pdf"

 

$document.SaveAs([ref] $pdf_filename, [ref] 17)

 

$document.Close()

}

 

$word_app.Quit()

From https://stackoverflow.com/questions/16534292/basic-powershell-batch-convert-word-docx-to-pdf

  • Thanks 1
Posted

Adobe?

 

I can right click on multiple Docx files in file explorer and hit convert to Adobe PDF, then it goes through them. Do have to save each one manually so will take a bit of time. But with 700 its going to take awhile no matter what!

  • Thanks 2
Posted
Ctrl + A > right click > Convert to Adobe PDF

 

* Requires Acrobat Pro

 

 

Yeah that would be good but don't have Adobe Pro. :(

 

- - - Updated - - -

 

I tried the Print to PDF printer but it will only let you select about 10 files at a time. Any more and the Print option dissapears.

Posted

Thanks all.

 

I ended up finding a free piece of software called MultiDoc Convertor made by Pawel Idzikowski.

This does the job and doesnt add any watermarks or have any limits so is great!

Posted

In PS:

 

# Acquire a list of DOCX files in a folder

$Files=GET-CHILDITEM "\\server\share\foldersource\*.DOCX" -Recurse
$Word=NEW-OBJECT –COMOBJECT WORD.APPLICATION

Foreach ($File in $Files) {
   # open a Word document, filename from the directory
   $Doc=$Word.Documents.Open($File.fullname)

   # Swap out DOCX with PDF in the Filename
   $Name=($Doc.Fullname).replace("docx","pdf")

   # Save this File as a PDF in Word 2010/2013/2016/2019/2022
   $Doc.saveas([ref] $Name, [ref] 17)

   $Doc.close()
}

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...