Convert Microsoft Publisher Files to PDFs Locally with PowerShell

2 comments

Apps it uses

Skip the pictures to the steps

Microsoft is retiring Publisher on October 1, 2026. I have many `.PUB` files that I need to convert to PDFs before then, but I did not want to use online converters. I wanted a solution that would run locally on my computer.

I worked with Claude to create a lightweight program that searches for `.PUB` files on a drive of my choice and converts them into high-quality PDF files, placing each new PDF in the same folder as its source file.

Opening PowerShell manually and managing permissions was too cumbersome, so Claude also created a batch file to make the process easier. For anyone who wants to create their own mini-program, I asked Claude to create a reusable prompt. I posted that prompt at https://mediumseagreen-seal-177480.hostingersite.com/ along with my two files: the batch file and the PowerShell commands.

Step-by-step

  1. I identified the `.PUB` files I needed to convert before Microsoft retires Publisher on October 1, 2026.
  2. I decided to use a local solution instead of an online converter.
  3. I worked with Claude to create a lightweight program that searches a selected drive for `.PUB` files.
  4. I set up the program to convert the files into high-quality PDFs and place each PDF in the same folder as its source `.PUB` file.
  5. I used a batch file created by Claude so I would not need to open PowerShell manually or manage permissions each time.
  6. I asked Claude to create a reusable prompt for others who want to build their own version and posted it with the batch file and PowerShell commands at https://mediumseagreen-seal-177480.hostingersite.com/.

2 comments

Have a question about this workflow, or a way to improve it?

Log in to comment Create a free account
Alper Tayfur

Keeping the whole conversion local is a smart choice, especially for old files that may contain sensitive material. Did you run into any Publisher formatting that didn’t survive the PDF conversion cleanly?

Brooke Benson Pro The Rundown team

this is awesome. The Publisher retirement is going to sneak up on a lot of people, and building something that runs locally instead of feeding files into a random online converter is smart! Sharing the reusable prompt too is very cool of you.

Posting guidelines