Share via

Convert Publisher documents

Jo 5 Reputation points
2026-04-04T18:49:00.56+00:00

How do I convert several thousand Publisher docs from decades with little time to do so and no skills to create macros

Microsoft 365 and Office | Publisher | For home

1 answer

Sort by: Most helpful
  1. Marcin Policht 85,750 Reputation points MVP Volunteer Moderator
    2026-04-04T19:05:59.5033333+00:00

    Refer to https://learn.microsoft.com/en-us/answers/questions/5575232/i-have-thousands-of-publisher-files-im-not-opening

     Instructions for Bulk Converting Publisher Files to PDF

    Note: This is provided for instructional purposes, and we recommend you modify and test for your specific needs.

    How to run:

    Ensure you have a working and licensed version of Publisher installed on your computer.

    Download the sample script from https://download.microsoft.com/download/3e67cd40-2334-4c46-a0c9-30bd43eebb3c/Convert-PubFileToPDF.ps1 to your computer.

    Modify the script as needed for your intended purpose.

    Open a PowerShell window with the required execution policies.

    Run the script against the files or directories you need.

    Examples:

    Converts the specified Publisher file to PDF format.

    Convert-PubFileToPDF.ps1 -Filter "C:\Documents\MyFile.pub"

    Converts all Publisher files in the current directory to PDF format.

    Convert-PubFileToPDF.ps1 -Filter "*.pub"

    Converts all Publisher files in the current directory and all subdirectories to PDF format.

    Convert-PubFileToPDF.ps1 -Filter "*.pub" -Recurse

    Converts all Publisher files in the specified directory to PDF format.

    Convert-PubFileToPDF.ps1 -Filter "C:\Documents*.pub"

    Converts all Publisher files in the specified directory and all subdirectories to PDF format.

    Convert-PubFileToPDF.ps1 -Filter "C:\Documents*.pub" -Recurse


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.