Convert doc, docx, xls, xlsx to PDF (without office installed) with powershell (for free)

1.5k Views Asked by At

Do any of you know a way to convert office docs (docx & xlsx) to pdf without having office installed?

I need to convert it on a server and hope to keep it office free.

This needs to be done with powershell, since I later need to create a recurring script for it.

2

There are 2 best solutions below

1
On

Well... You have many online converters. Examples:

Just search the Google :).

0
On

If you want a lot of items converted, for free and from various Office applications, you should get yourself a dedicated PC with Office installed and a PDF printer, and then just invoke Office via COM objects, load the docs to convert and call print() with proper parameters. Powershell is capable of doing this. If you want to get by with no Office installed due to license reasons, use OOo (it's free) and do the same calling OOo executionables via command line. You can also use an Office-aware PDF converter, like this one ($50), although free converters may exist as well.