PowerShell: Turning/Printing Word Files into PDF using Bullzip

101 Views Asked by At

So I have a folder with a bunch of docx files and I want to turn them into PDFs. I could use the following method in a loop

$Word=NEW-OBJECT –COMOBJECT WORD.APPLICATION
$Doc=$Word.Documents.Open('"C:\[path]\word.docx"')
$Name=($Doc.Fullname).replace(“docx”,”pdf”)
$Doc.saveas([ref] $Name, [ref] 17)
$Doc.close()
$word.quit() 

But there are over 100 word files, and so it would take a while. I installed BullZip to test if it worked better but I don't know the code in order to use it in powershell. If anyone can provide it along with an explanation on how it works, I would appreciate it. Thanks

0

There are 0 best solutions below